Skip to content

Commit

Permalink
fix(module): problem compile webpack ionic2
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonornela committed Dec 2, 2016
1 parent 99be9bb commit 6234577
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import { ConfigRoutesToken, Metadata, MetadataBase, Request, Resolve } from './p
]
})
export class UrlResolverModule {
static initialize(data?: Object): ModuleWithProviders {
static initialize(data?: any): ModuleWithProviders {
return {
ngModule: UrlResolverModule,
providers: [
{ provide: ConfigRoutesToken, useValue: data },
{ provide: ConfigRoutesToken, useValue: data || null },
{ provide: Metadata, useClass: MetadataBase }
]
};
Expand Down

0 comments on commit 6234577

Please sign in to comment.