Terrible beginnings of using components

This commit is contained in:
Scott
2016-10-31 22:12:02 +11:00
parent 2cdf3a79e5
commit 13ef022f6f
5 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1 @@
<div>hello world</div>

View File

@@ -0,0 +1,11 @@
angular.module('myApp.buy',[]).component('buy', {
templateUrl: '/components/buy/buy.html',
controller:'BuyController',
bindings: {
message: '='
}
}).controller('BuyController', function ($scope, $http, Notification) {
alert(this.message);
});