These are chat archives for AngularClass/NG6-starter

17th
Dec 2015
Daniel Ignatius Kore
@darkbcx
Dec 17 2015 05:13
hello... how do i inject a provider in a controller?
i have try using $inject, @inject from ng-annotations but still got error
Sergey Protko
@fesor
Dec 17 2015 08:21
You can’t inject provider into controller.
the only place where you can work with providers is config of module
kasiriveni
@kasiriveni
Dec 17 2015 08:22
@darkbcx provider inject only config phase only
Sergey Protko
@fesor
Dec 17 2015 08:22

but still got error

please provide error

kasiriveni
@kasiriveni
Dec 17 2015 08:32
Refactor all components to use .component() declaration syntax, why there going to approach
Sergey Protko
@fesor
Dec 17 2015 09:35
@kasiriveni what do you mean?