#33 draft gulp

This commit is contained in:
Mario Romano
2016-04-19 11:57:05 +01:00
parent c90fac92a8
commit 88bd8ea345
91 changed files with 52110 additions and 96 deletions

View File

@@ -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();
}