Angular 4 Uncaught ReferenceError: ng is not defined -
in superclass have inject translateservice because have translate standard message notification/alert. have add translateservice classes extends superclass.
superclass
constructor(public endpointurlservice: endpointurlservice, public translate: translateservice, protected route: activatedroute, protected router: router) { }
usercomponent
export class userlistcomponent extends superclass constructor( private userservice: userservice, router: router, endpointurlservice: endpointurlservice, route: activatedroute, translate: translateservice) { super(endpointurlservice, translate, route, router) }
before injecting translate service don't have errors now:
referenceerror: ng not defined
and
typeerror: cannot read property 'geadapter' of undefined
Comments
Post a Comment