Monday, 31 March 2014

Hello World in AngularJs

There are 2 files one is Html and second is Js.

Html Coding :

In Html Page , we have used 2 Js File , one is angular js which you can download it from angularjs site , and second one is you have to create or you can write in html page by using <script>  </script> tag.

data-ng-app ="myApp"
In js we have used  myApp is the name used for code of block where angularjs will be resposnive.
we have created one controller in Js named as MainCtrl , see javascript file at the bottom of this page .

{{}} this is delimeters , used for expression in angularjs .
{{text}} you can check the value of text  in Js file ...




Java Script File :
$scope.text automatically bind it  with {{text }} at html page ...






0 comments:

Post a Comment