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 ...






Related Posts:

  • Angular Seed for begineers Angular seed is a minimal angular js app . you can find seed from Github : https://github.com/jaspreetbtech/simpleangularseed or simply type in ter… Read More
  • 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 f… Read More
  • AngularJs : What is it ? AngularJs is new jquery framework . It is used to create MVVM (Model View View Model)  Application . Its a Single page Web Application . … Read More

0 comments:

Post a Comment