change lib path refs components
This commit is contained in:
parent
54bf9d3fe2
commit
a88cfb8e3d
6 changed files with 34 additions and 21 deletions
|
@ -4,6 +4,7 @@ import {DsNavbar} from './ds-navbar';
|
|||
import {CommonModule} from '@angular/common';
|
||||
import {Store, StoreModule} from '@ngrx/store';
|
||||
import {reducers} from '../reducers';
|
||||
import {ActivatedRoute, RouterModule} from '@angular/router';
|
||||
|
||||
const appReducer = reducers.app;
|
||||
|
||||
|
@ -16,9 +17,20 @@ const meta: Meta<DsNavbar> = {
|
|||
imports: [
|
||||
CommonModule,
|
||||
StoreModule.forRoot({app: appReducer as any}),
|
||||
RouterModule.forRoot([]),
|
||||
],
|
||||
providers: [
|
||||
Store
|
||||
Store,
|
||||
{
|
||||
provide: ActivatedRoute,
|
||||
useValue: {
|
||||
snapshot: {
|
||||
paramMap: {
|
||||
get: () => null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue