Define them on the class? do you have example. thanks

On Fri, Oct 26, 2018 at 12:15 AM Sander Elias <sanderel...@gmail.com> wrote:

> Hi Anthony,
>
> constructor(private allowedRoles:string[], private router:Router) {}
>
> The injector does not know what to inject for `string[]`. Don't declare
> private variables like that. define them on the class itself.
>
> Regards
> Sander
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Angular and AngularJS discussion" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/angular/b5OtWpct31o/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> angular+unsubscr...@googlegroups.com.
> To post to this group, send email to angular@googlegroups.com.
> Visit this group at https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Anthony P
(919) 671-7234

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to