I am having the worst time with the following code:
angular.
module('albumCarousel').
component('albumCarousel', {
templateUrl: '/album-carousel/album-carousel.template.html',
controller: function AlbumCarouselController($scope, $http) {
/* the bane of my existence */
console.log(this.category); // prints undefined..
}
}
)
In my html, I have the following:
<angular-carousel category="songs"></angular-carousel>
Going back to the component, in the controller,
this.category comes back as undefined.
How do I get it to return "songs"