hi can't opaquetoken work, did overlooked anything?
in app.ts
export const sbtoken = new opaquetoken('mytoken'); const testfile = 'hello';
in ngmodule
providers: [{provide:sbtoken, usevalue:testfile}]
in test.cmp
constructor(@inject(sbtoken) private token) { console.log(token) }
and i'm getting error (in punker, uses systemjs guess)
(systemjs) error: can't resolve parameters testcomponent: (?).
within webpack project similar error
can't resolve parameters loginpage: (navcontroller, selfbitsangular, ?).
you have cyclic dependency between app.module , test.component. problem answer in angular 2 opaquetoken
Comments
Post a Comment