File tree Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ import {
4
4
NgModule ,
5
5
Optional ,
6
6
SkipSelf
7
- } from '@angular/core' ;
7
+ } from '@angular/core' ;
8
8
import {
9
9
ChoosyFooterComponent ,
10
10
ChoosyListComponent ,
11
11
ChoosyResultsComponent ,
12
12
ChoosySearchComponent
13
- } from './components' ;
13
+ } from './components' ;
14
14
import { ChoosyButtonSelectDirective , ChoosySingleSelectDirective } from './directives' ;
15
- import { ChoosyConfigService , GlobalConfigData } from './services/choosy-config/choosy-config.service ' ;
15
+ import { ChoosyConfigService , ChoosyManagerService , GlobalConfigData } from './services' ;
16
16
17
17
export function ChoosyConfigLoader ( globalConfig : any ) : ChoosyConfigService {
18
18
return new ChoosyConfigService ( globalConfig ) ;
@@ -39,7 +39,7 @@ export function ChoosyConfigLoader(globalConfig: any): ChoosyConfigService {
39
39
ChoosySingleSelectDirective ,
40
40
ChoosyButtonSelectDirective
41
41
] ,
42
- providers : [ ChoosyConfigService ]
42
+ providers : [ ChoosyConfigService , ChoosyManagerService ]
43
43
} )
44
44
export class NgxChoosyModule {
45
45
static forRoot ( globalConfig : any ) : ModuleWithProviders {
Original file line number Diff line number Diff line change
1
+ import { Injectable } from '@angular/core' ;
2
+ import { ChoosyResultsComponent } from './../../components' ;
3
+
4
+ @Injectable ( )
5
+ export class ChoosyManagerService {
6
+ public instances : { ins : ChoosyResultsComponent , insID : any } [ ] = [ ] ;
7
+ addInstance ( ins : ChoosyResultsComponent , insID : any ) {
8
+ this . instances . push ( { ins, insID } ) ;
9
+ }
10
+ }
Original file line number Diff line number Diff line change 1
- import { ChoosyConfigService } from './choosy-config/choosy-config.service' ;
1
+ export { ChoosyConfigService , GlobalConfigData } from './choosy-config/choosy-config.service' ;
2
+ export { ChoosyManagerService } from './choosy-manager/choosy-manager.service' ;
You can’t perform that action at this time.
0 commit comments