Skip to main content

Posts

Showing posts with the label how to use angularjs in mvc 5

The basic steps how to learn AngularJs?

Hello everyone, I am going to share the steps of using angularjs in MVC V4.0+, The steps as given bellows. In the 1 st step , Need to add the angularjs library URL on the page. < script   src =" https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.0/angular.min.js "></ script > In the 2 nd step , Need to add the basic angularjs attribute which are give below.  ng-app, ng-model and ng-controller etc. The example code < script >       var app = angular.module( myApp , []);      app .controller( ' myController ' , [ '$scope' ,   function   ($scope) {            $scope.anything = [];                  }]); </ script > The example as given below. < div ng-app ="myApp" >     < div class ="jumbotr...