this may sound newb, but I have been following this tutorial for angularjs component.
I am new to components and how do I inject a constant Utils
or authService
to my component like this?
app.component('tlOverallHeader', {
bindings: {
data: '='
},
templateUrl: 'js/indexTimeline/components/tl_overallHeader/templates/tl_overallHeader.html',
controller: function() {
this.ms = 'tlOverallheader!'
}
})
thanks!