I am trying to use an AngularJS $scope as an HTML attribute rather than viewable text.
main.js
var myApp = angular.module('myApp');
myApp.controller("buttonCtrl", ['$scope', function($scope){
$scope.johnny = [
{quote: 'Anything for My Princess', controller: 'Princess'}
];
}]);
page1.html
<button ng-repeat="button in johnny"
ng-class="dynamic"
class="topcoat-button"
ng-controller="{{button.controller}}" <---- this is what does not work
ng-click="play()">
{{button.quote}}
</button>
How can I fix this so I can add these variables as an attribute value.
Thanks