1
1
# UI-Router angular-hybrid
2
2
3
- [ ![ Build Status ] ( https://travis-ci.org /ui-router/angular-hybrid. svg?branch=master )] ( https://travis-ci.org /ui-router/angular-hybrid )
3
+ [ ![ CI ] ( https://github.com /ui-router/angular-hybrid/actions/workflows/ci.yml/badge. svg?branch=master )] ( https://github.com /ui-router/angular-hybrid/actions/workflows/ci.yml )
4
4
5
5
### UI-Router support for Hybrid Angular/AngularJS apps
6
6
@@ -136,7 +136,7 @@ ngmodule.config(['$urlServiceProvider', ($urlService: UrlService) => $urlService
136
136
``` js
137
137
platformBrowserDynamic ()
138
138
.bootstrapModule (SampleAppModuleAngular)
139
- .then (platformRef => {
139
+ .then (( platformRef ) => {
140
140
// Intialize the Angular Module
141
141
// get() the UIRouter instance from DI to initialize the router
142
142
const urlService: UrlService = platformRef .injector .get (UIRouter).urlService ;
@@ -147,7 +147,7 @@ platformBrowserDynamic()
147
147
urlService .sync ();
148
148
}
149
149
150
- platformRef .injector .get < NgZone> ( NgZone) .run (startUIRouter);
150
+ platformRef .injector .get < NgZone > NgZone .run (startUIRouter);
151
151
});
152
152
```
153
153
@@ -267,14 +267,14 @@ import { AuthService, UserToken } from './auth.service';
267
267
268
268
// Notice that the `Transition` object is first injected
269
269
// into the resolver using the '$transition$' string token
270
- export const rolesResolver = function ($transition$ ) {
270
+ export const rolesResolver = function ($transition$ ) {
271
271
// Get the AuthService using a class token
272
272
const authService: AuthService = transition .injector ().get (AuthService );
273
273
274
274
// Get the user object using an InjectionToken
275
275
const user = transition .injector ().get (UserToken );
276
276
277
- return authService .fetchRoles (user ).then (resp => resp .roles );
277
+ return authService .fetchRoles (user ).then (( resp ) => resp .roles );
278
278
};
279
279
280
280
export const NG2_STATE = {
0 commit comments