import {bundle, Component, StateConfig} from 'ng-forward'; @Component({ selector: 'main2', template: `test main2` }) export class Main2 { } @Component({ selector: 'main', template: `aaaa ` }) @StateConfig([ { url: '/', component: Main2, // templateUrl: "app/main/main.html", name: 'main', // resolve: { // currentUser: function(AuthService) { // return AuthService.loginFromCookie(); // } // } } ]) export class Main { } // bundle('noosferoApp', Main2).publish(); // bundle('noosferoApp', Main).publish();