Skip to content

Commit 4a8d1bb

Browse files
committed
Imported directives instead of declaring them in UIRouterModule
1 parent 97cc602 commit 4a8d1bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/uiRouterNgModule.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ export function locationStrategy(useHash) {
7171
* This enables UI-Router to automatically register the states with the [[StateRegistry]] at bootstrap (and during lazy load).
7272
*/
7373
@NgModule({
74-
imports: [CommonModule],
75-
declarations: [_UIROUTER_DIRECTIVES],
74+
imports: [
75+
CommonModule,
76+
_UIROUTER_DIRECTIVES
77+
],
7678
exports: [_UIROUTER_DIRECTIVES],
7779
})
7880
export class UIRouterModule {

0 commit comments

Comments
 (0)