I have a component that I want to pass a variable to.
Basically my component is called by:
<profileimage></profileimage>
I want to pass it an ID by
<profileimage userid="user.ID"></profileimage>
I would be able to then use that ID in the controller to load an image
function ProfileImageController($scope) {
var ctrl = this;
}
var app = angular.module('creatif')
.component('profileimage', {
templateUrl: 'components/profileimage/profileimage.html',
controller: ProfileImageController
});