앵귤러 Controller
컨트롤러의 해해! 기본var myApp = angular.module('myApp',[]); myApp.controller('GreetingController', ['$scope', function($scope) { $scope.greeting = 'Hola!'; }]); {{ greeting }} Adding Behavior to a Scope Objectvar myApp = angular.module('myApp',[]); myApp.controller('DoubleController', ['$scope', function($scope) { $scope.double = function(value) { return value * 2; }; }]); Two times equals {{ double(num..
웹개발/Javascript
2015. 7. 11. 10:53