5 Jul 2015

Angular JS a simple Application

Angular JS Application

 http://www.informit.com/articles/article.aspx?p=2271482&seqNum=9

http://www.informit.com/articles/article.aspx?p=2271482&seqNum=8

var firstApp = angular.module('firstApp', []); firstApp.controller('FirstController', function($scope) { $scope.first = 'Some'; $scope.last = 'One'; $scope.heading = 'Message: '; $scope.updateMessage = function() { $scope.message = 'Hello ' + $scope.first +' '+ $scope.last + '!'; }; });

No comments:

Post a Comment