angular - Angular2 rc3: Error when injecting services in constructor (Cannot resolve parameters' types) -


i have constructor in authguard class:

@injectable() export class authguard implements canactivate {     constructor(         private ribbonservice: ribbonservice,         private checksessionservice: checksessionservice,         private router: router) { }      // etc } 

when build fine following error when accessing through browser:

reflective_provider.js:233 uncaught cannot resolve parameters 'authguard'(undefined, checksessionservice, router).  make sure parameters decorated inject or have valid type annotations , 'authguard' decorated injectable. 

i don't understand why happens first service , not second. thought problem inheritance cause first service extending baseservice made second service extend baseservice , works, problematic 1 first one....

note i've tried adding @inject decorator each param result it's same.

thanks before hand!!

ribbonservice (or 1 of dependencies) not imported or provided correctly.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -