mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
#33 draft gulp
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import {Component} from 'angular2/core';
|
||||
import {Router, RouteConfig, ROUTER_DIRECTIVES} from "angular2/router";
|
||||
import {Login} from "./components/login";
|
||||
import {Authentication} from "./services/authentication";
|
||||
import {AuthRouterOutlet} from "./components/AuthRouterOutlet";
|
||||
import {HomeView} from "./components/home.view";
|
||||
import {Page1View} from "./components/page1.view";
|
||||
import {Page2View} from "./components/page2.view";
|
||||
import {Router, RouteConfig, ROUTER_DIRECTIVES} from 'angular2/router';
|
||||
import {Login} from './components/login';
|
||||
import {Authentication} from './services/authentication';
|
||||
import {AuthRouterOutlet} from './components/AuthRouterOutlet';
|
||||
import {HomeView} from './components/home.view';
|
||||
import {Page1View} from './components/page1.view';
|
||||
import {Page2View} from './components/page2.view';
|
||||
import {AlfrescoService} from 'ng2-alfresco/components';
|
||||
|
||||
@Component({
|
||||
@@ -21,19 +21,17 @@ import {AlfrescoService} from 'ng2-alfresco/components';
|
||||
])
|
||||
export class AppComponent {
|
||||
|
||||
constructor(
|
||||
public auth: Authentication,
|
||||
public router: Router,
|
||||
alfrescoService: AlfrescoService
|
||||
){
|
||||
constructor(public auth:Authentication,
|
||||
public router:Router,
|
||||
alfrescoService:AlfrescoService) {
|
||||
alfrescoService.host = 'http://192.168.99.100:8080';
|
||||
}
|
||||
|
||||
isActive(instruction: any[]): boolean {
|
||||
isActive(instruction:any[]):boolean {
|
||||
return this.router.isRouteActive(this.router.generate(instruction));
|
||||
}
|
||||
|
||||
isLoggedIn(): boolean {
|
||||
isLoggedIn():boolean {
|
||||
return this.auth.isLoggedIn();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user