mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-02 23:16:51 +00:00
Terrible beginnings of using components
This commit is contained in:
1
web/app/components/buy/buy.html
Normal file
1
web/app/components/buy/buy.html
Normal file
@@ -0,0 +1 @@
|
||||
<div>hello world</div>
|
||||
11
web/app/components/buy/buy.js
Normal file
11
web/app/components/buy/buy.js
Normal 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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user