mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-31 22:17:30 +00:00
Upgrade Angular template to Angular 2 RC3 and migrate to new @angular/router
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import * as ng from '@angular/core';
|
||||
import * as router from '@angular/router-deprecated';
|
||||
import { ROUTER_DIRECTIVES } from '@angular/router';
|
||||
|
||||
@ng.Component({
|
||||
selector: 'nav-menu',
|
||||
template: require('./nav-menu.html'),
|
||||
directives: [router.ROUTER_DIRECTIVES]
|
||||
directives: [...ROUTER_DIRECTIVES]
|
||||
})
|
||||
export class NavMenu {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user