Skip to content

Commit 043c50a

Browse files
committed
chore(*): update ci badge on readme
1 parent e2ec590 commit 043c50a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# UI-Router angular-hybrid
22

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)
44

55
### UI-Router support for Hybrid Angular/AngularJS apps
66

@@ -136,7 +136,7 @@ ngmodule.config(['$urlServiceProvider', ($urlService: UrlService) => $urlService
136136
```js
137137
platformBrowserDynamic()
138138
.bootstrapModule(SampleAppModuleAngular)
139-
.then(platformRef => {
139+
.then((platformRef) => {
140140
// Intialize the Angular Module
141141
// get() the UIRouter instance from DI to initialize the router
142142
const urlService: UrlService = platformRef.injector.get(UIRouter).urlService;
@@ -147,7 +147,7 @@ platformBrowserDynamic()
147147
urlService.sync();
148148
}
149149

150-
platformRef.injector.get<NgZone>(NgZone).run(startUIRouter);
150+
platformRef.injector.get < NgZone > NgZone.run(startUIRouter);
151151
});
152152
```
153153

@@ -267,14 +267,14 @@ import { AuthService, UserToken } from './auth.service';
267267

268268
// Notice that the `Transition` object is first injected
269269
// into the resolver using the '$transition$' string token
270-
export const rolesResolver = function($transition$) {
270+
export const rolesResolver = function ($transition$) {
271271
// Get the AuthService using a class token
272272
const authService: AuthService = transition.injector().get(AuthService);
273273

274274
// Get the user object using an InjectionToken
275275
const user = transition.injector().get(UserToken);
276276

277-
return authService.fetchRoles(user).then(resp => resp.roles);
277+
return authService.fetchRoles(user).then((resp) => resp.roles);
278278
};
279279

280280
export const NG2_STATE = {

0 commit comments

Comments
 (0)