/Angularjs

Anguler directive, routing, data binding, components etc

Primary LanguageHTMLMIT LicenseMIT

Angular

Project setup

  1. install angular (bower install angularjs --save)
  2. install bootstrap (bower install bootstrap --save)
  3. create index.html file (in the root folder)
  4. add dummy html code and link those angular and bootstrap file to your html file
  5. run the project

👍

Creating and app

  1. create application folder in your root app dir.
  2. create controller folder in /application
  3. create Maincontroller.js file in /application/controller/
  4. create app.js file in /application/

Add following code in App.js

angular.module("App",[]);

Add following code in MainController.js file

angular.module("App")

.controller("MainController",['$scope',function($scope){
    $scope.name = "This is my first angular App and  controller";
}]);