Minimal AngularJS example

  • Include angularJS script
  • Place ng-app attribute on html tag
  • Define your controller in separate script file
  • Set ng-controller attribute on the appropriate tag




    
    Hello world



    

{{helloMessage}}

Share

Leave a Reply

Your email address will not be published. Required fields are marked *