diff --git a/web/app/app.js b/web/app/app.js index db77ad3e..39305852 100644 --- a/web/app/app.js +++ b/web/app/app.js @@ -7,7 +7,8 @@ angular.module('myApp', [ 'myApp.home', 'myApp.wallets', 'myApp.settings', - 'myApp.version' + 'myApp.version', + 'myApp.buy' ]). config(['$locationProvider', '$routeProvider' ,'NotificationProvider', function($locationProvider, $routeProvider, NotificationProvider) { NotificationProvider.setOptions({ diff --git a/web/app/components/buy/buy.html b/web/app/components/buy/buy.html new file mode 100644 index 00000000..af507e77 --- /dev/null +++ b/web/app/components/buy/buy.html @@ -0,0 +1 @@ +
hello world
\ No newline at end of file diff --git a/web/app/components/buy/buy.js b/web/app/components/buy/buy.js new file mode 100644 index 00000000..09347802 --- /dev/null +++ b/web/app/components/buy/buy.js @@ -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); +}); + diff --git a/web/app/index.html b/web/app/index.html index cde46e6a..0e93c805 100644 --- a/web/app/index.html +++ b/web/app/index.html @@ -60,6 +60,7 @@ + diff --git a/web/app/views/home/home.html b/web/app/views/home/home.html index b726f334..e8f9c2e8 100644 --- a/web/app/views/home/home.html +++ b/web/app/views/home/home.html @@ -1,4 +1,6 @@

Dashboard

+ +