Skip to content
This repository has been archived by the owner on Feb 9, 2018. It is now read-only.

Update ui-router-ng2 to beta.4 + angular 2.4.x #31

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 9 additions & 8 deletions package.json
Expand Up @@ -14,20 +14,21 @@
"url": "https://github.com/ui-router/quickstart-ng2.git"
},
"dependencies": {
"@angular/common": "^2.0.0",
"@angular/compiler": "^2.0.0",
"@angular/core": "^2.0.0",
"@angular/http": "^2.0.0",
"@angular/platform-browser": "^2.0.0",
"@angular/platform-browser-dynamic": "^2.0.0",
"@angular/common": "^2.4.0",
"@angular/compiler": "^2.4.0",
"@angular/core": "^2.4.0",
"@angular/http": "^2.4.0",
"@angular/platform-browser": "^2.4.0",
"@angular/platform-browser-dynamic": "^2.4.0",
"@angular/router": "^3.3.1",
"core-js": "^2.4.0",
"es6-shim": "^0.35.0",
"reflect-metadata": "^0.1.3",
"rxjs": "^5.0.0-beta.12",
"systemjs": "0.19.27",
"ui-router-ng2": "^1.0.0-beta.3",
"ui-router-ng2": "1.0.0-beta.4",
"ui-router-visualizer": "^2.0.7",
"zone.js": "^0.6.21"
"zone.js": "^0.7.2"
},
"devDependencies": {
"@types/chai": "^3.4.34",
Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap.ts
Expand Up @@ -24,7 +24,7 @@ trace.enable(Category.TRANSITION, Category.VIEWCONFIG);
states: MAIN_STATES,
otherwise: { state: 'app', params: {} },
useHash: true,
configClass: MyRootUIRouterConfig
config: MyRootUIRouterConfig
}),
FooModule,
BarModule,
Expand Down
14 changes: 5 additions & 9 deletions src/router.config.ts
@@ -1,5 +1,4 @@
import {UIRouter} from "ui-router-ng2";
import {Injectable} from "@angular/core";
declare var SystemJS;

/**
Expand All @@ -9,12 +8,9 @@ declare var SystemJS;
*
* The class will be added to the Injector and instantiate when the module loads.
*/
@Injectable()
export class MyRootUIRouterConfig {
export function MyRootUIRouterConfig(uiRouter: UIRouter) {
/** You may inject dependencies into the constructor */
constructor(uiRouter: UIRouter) {
// Show the ui-router visualizer
let vis = window['ui-router-visualizer'];
vis.visualizer(uiRouter);
}
}
// Show the ui-router visualizer
let vis = window['ui-router-visualizer'];
vis.visualizer(uiRouter);
}