Posts

Showing posts with the label AngularJS Setup

AngularJS Setup (Beginner to Working App) – Complete Beginner Guide

 AngularJS Setup (Beginner to Working App) AngularJS Setup – Complete Beginner Guide (AngularJS 1.x) Quick Setup using CDN (No build tools) 1) Create index.html : <!doctype html > < html ng-app = "demoApp" > < head > < meta charset = "utf-8" /> < title >AngularJS Setup </ title > < script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.8.2/angular.min.js" > </ script > </ head > < body ng-controller = "MainCtrl" > < h2 >Hello {{name}} </ h2 > < input ng-model = "name" placeholder = "Type your name" /> < button ng-click = "reset()" >Reset </ button > < script > angular. module ( 'demoApp' , []) . controller ( 'MainCtrl' , function ( $scope ) { $scope. name = "Shikha" ; $scope. reset = function ( ) { $scope. name = "" ; }; ...