{"id":41189,"date":"2019-01-02T04:30:51","date_gmt":"2019-01-02T04:30:51","guid":{"rendered":"https:\/\/www.softwaretestinghelp.com\/?page_id=41189"},"modified":"2025-10-16T16:12:27","modified_gmt":"2025-10-16T16:12:27","slug":"angularjs-tutorial","status":"publish","type":"page","link":"https:\/\/www.softwaretestinghelp.com\/angularjs-tutorial\/","title":{"rendered":"AngularJS Tutorial for Absolute Beginners (with Installation Guide)"},"content":{"rendered":"<p><strong>Introduction to AngularJS: What is\u00a0AngularJS, Its\u00a0Benefits, Features, and How to Download and Installation Guide<\/strong><\/p>\n<p>AngularJS is a programming language that is becoming popular nowadays.<\/p>\n<p>It&#8217;s 2018, and the technological advancements have been at their peak this year. The programming languages such as Python, AngularJS, Ruby on Rails, React and Redux JS, etc. have been most sought after.<\/p>\n<p>You can easily get a job if you get a hold of any of these programming languages along with the older languages such as JAVA or C++. It\u2019s very important to be up to date with the new programming trends in order to keep your learning quotient high.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-41268 size-full\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/Angular-JS-edited.png\" alt=\"AngularJS Tutorial\" width=\"600\" height=\"300\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/Angular-JS-edited.png 600w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/Angular-JS-edited-300x150.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Our <strong>Series of AngularJS<\/strong>\u00a0Tutorials will give you complete knowledge of the AngularJS.<\/p>\n<p>*******************************************************************************<\/p>\n<p><strong>Quickly Learn AngularJS with these 6 Tutorials:<\/strong><span style=\"color: #ff6600;\"><strong><br \/>\n<\/strong><\/span><\/p>\n<p><span style=\"color: #ff6600;\"><strong>Tutorial #1<\/strong><\/span> \u2013 <a href=\"https:\/\/www.softwaretestinghelp.com\/angularjs-tutorial\/\">Introduction to AngularJS (This Tutorial)<\/a><br \/>\n<span style=\"color: #ff6600;\"><strong>Tutorial #2<\/strong><\/span> \u2013 <a href=\"https:\/\/www.softwaretestinghelp.com\/angularjs-directive-example\/\">AngularJS Directive with Example<\/a><br \/>\n<span style=\"color: #ff6600;\"><strong>Tutorial #3<\/strong> <\/span>\u2013 <a href=\"https:\/\/www.softwaretestinghelp.com\/single-page-application-using-angularjs\/\">Build Single Page Application Using AngularJS<\/a><br \/>\n<span style=\"color: #ff6600;\"><strong>Tutorial #4<\/strong><\/span> \u2013 <a href=\"https:\/\/www.softwaretestinghelp.com\/angular-versions\/\">Difference Between Angular Versions<\/a><br \/>\n<span style=\"color: #ff6600;\"><strong>Tutorial #5<\/strong><\/span> \u2013 <a href=\"https:\/\/www.softwaretestinghelp.com\/protractor-testing-tutorial\/\">Protractor Tool for End-to-end Testing of AngularJS Apps<\/a><br \/>\n<span style=\"color: #ff6600;\"><strong>Tutorial #6<\/strong><\/span> \u2013 <a href=\"https:\/\/www.softwaretestinghelp.com\/angularjs-interview-questions\/\">Top AngularJS Interview Questions<\/a><\/p>\n<p>********************************************************************************<\/p>\n<p>Organizations try to employ people based on their productivity. If a person is capable of developing code and delivering output at a lesser time, then obviously he gets an edge over the others.<\/p>\n<p>Considering the demand in the current markets along with the time taken for a complete beginner to learn and build real-world apps, the best programming language to learn right now, is AngularJS.<\/p>\n<p>To start with the series, let&#8217;s have a brief <strong>introduction to AngularJS.<\/strong><\/p>\n<h3>What is AngularJS?<\/h3>\n<p>AngularJS is a JavaScript framework that operates on the client-side and is used to develop web applications.<\/p>\n<p>This means that the code you write will be executed by the browser and not by the server. It is a popular and powerful JavaScript framework and is widely used in single-page application projects and line of business applications.<\/p>\n<p>Due to this, various AngularJs application development companies are in demand now.<\/p>\n<h3>When AngularJS Came into Picture?<\/h3>\n<p>Web development is one of the most preferred and cost-effective ways to create distributed applications.<\/p>\n<p>The deployment done once on one machine can be made accessible to all the users on the world wide web. One of the performance issues that came up was the page posting issue which resulted in a communication lag between the client and the server.<\/p>\n<p>AngularJS was developed by Misko and Adam Abrons in 2009 in order to help combat such issues and is being maintained by Google since then. It is an open-source project which means you can freely use and share it.<\/p>\n<p>Several web applications are being built since their conception and many of the applications are listed on its <a href=\"http:\/\/www.madewithangular.com\" target=\"_blank\" rel=\"noopener nofollow\">website<\/a><em>.<\/em><\/p>\n<h3>Why AngularJS?<\/h3>\n<p>We already have <a href=\"https:\/\/www.softwaretestinghelp.com\/javascript-frameworks\/\">several JavaScript frameworks<\/a> such as React JS, Node JS, Backbone JS, etc. But still, why do we prefer AngularJS to the existing ones?<\/p>\n<p>When you develop web pages using AngularJS, the pages will not be refreshed frequently due to the operations that a user performs on the webpage. This, in turn, is necessary to give faster output to the users via the webpage.<\/p>\n<p><em><strong>But how does AngularJS achieve this?<\/strong><\/em><\/p>\n<p>The benefits of AngularJS which are stated below would answer the above questions.<\/p>\n<p><strong>There are several benefits as listed below:<\/strong><\/p>\n<h4><span style=\"color: #ff6600;\">#1) Dependency Injection<\/span><\/h4>\n<p>In software engineering, dependency injection refers to the passing of objects between the application and the client.<\/p>\n<p>The injection is the phenomenon of passing a dependency (say an application service) to a dependent object (say a client) that would use it. AngularJS provides several core components for achieving this purpose in simplicity.<\/p>\n<h4><span style=\"color: #ff6600;\">#2) Model View Controller<\/span><\/h4>\n<p>AngularJS is used to create Rich Internet Applications (RIA), and two-way data binding is achievable due to the MVC (model view controller) architecture in Angular JS.<\/p>\n<p><strong>A basic depiction of this architecture is as shown below:<\/strong><\/p>\n<p><span style=\"color: #ff6600;\"><strong>MVC Model for AngularJS<\/strong><\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41213\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.1MVC-model-for-Angular-JS.png\" alt=\"1.1MVC model for Angular JS\" width=\"394\" height=\"308\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.1MVC-model-for-Angular-JS.png 394w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.1MVC-model-for-Angular-JS-300x235.png 300w\" sizes=\"(max-width: 394px) 100vw, 394px\" \/><\/p>\n<p>As developers, we just have to split our code into the model, view, and controller and the rest of the operations such as managing the components and connecting them together will be automatically done by AngularJS.<\/p>\n<h4><span style=\"color: #ff6600;\">#3) Two-way Data Binding<\/span><\/h4>\n<p>Software changes should be responsive, and changes within the system should be catered to the changes in the user interface and conversely, with precision and speed.<\/p>\n<p>AngularJS offers this kind of binding by synchronizing between the model and the view.<\/p>\n<h4><span style=\"color: #ff6600;\">#4) Testing<\/span><\/h4>\n<p>It is interesting to know the fact that AngularJS was designed keeping testing in mind, right from the beginning.<\/p>\n<p>Any of the components of AngularJS can be comfortably tested using both unit testing and an end to end testing. The application can be transported across browsers for testing purposes.<\/p>\n<h4><span style=\"color: #ff6600;\">#5) Controlling the behavior of DOM elements<\/span><\/h4>\n<p>Attributes of AngularJS can be linked to directives so that automatic initialization of the application is possible.<\/p>\n<p>This means that there is modularity in AngularJS and with the help of its features such as directives and filters, a sense of customization and flexibility can be achieved in the code.<\/p>\n<p>Now, we have seen the answers to all the why- questions that may arise as a result of apprehensions in learning something new, and I think we\u2019re good to go.<\/p>\n<p>It is always better to learn a technological trend and keep updating ourselves often to make the most out of our careers and also to keep that inquisitive mind of ours always thirsty for knowledge.<\/p>\n<h3>Pre-Requisites for Learning AngularJS<\/h3>\n<p>It is important and advantageous to know a few things in advance to speed up your learning pace.<\/p>\n<p>HTML and CSS could be used to build your own web pages so that testing can be done on them. To code in AngularJS, it is important to have a basic understanding of JavaScript.<\/p>\n<p>Hence, it is advisable to get a basic understanding of HTML and CSS along with the concepts of implementing JavaScript, before starting off with AngularJS.<\/p>\n<h3>Features of AngularJS<\/h3>\n<p>In the AngularJS language there are many offerings that are unique and exclusive. It is better to get yourself acquainted to these before setting up an environment to write and execute the code in AngularJS.<\/p>\n<h4><span style=\"color: #ff6600;\">MVC Architecture<\/span><\/h4>\n<p>Model-View-Controller design of AngularJS has to be understood, for understanding how the code works.<\/p>\n<p>MVC forms the core of this programming language and hence is very important too. Whenever an event occurs, the Controller part of the codebase receives the input of the event which consists of varied requests for the application.<\/p>\n<p>The model part of the codebase, which usually is the core logic, coordinates with the controller and prepares the required data that has to be used by the view to generate a presentable output. Hence there is a separation of concerns within the programming language architecture as it isolates the application logic from the UI layer.<\/p>\n<p>This is the reason for which AngularJS is widely used in developing Single Page Applications (SPA).<\/p>\n<h4><span style=\"color: #ff6600;\">Directives<\/span><\/h4>\n<p>AngularJS is integrated with the HTML code to create web pages, and \u201cDirectives\u201d are the special attributes of AngularJS and are used in order to integrate them.<\/p>\n<h3>Expressions In AngularJS<\/h3>\n<p>AngularJS expressions can contain literals, operators or variables, unlike the traditional JavaScript.<\/p>\n<p>They could be written inside the HTML tag itself, but care has to be taken to add the ng-app directive, else the expression will be displayed as it is, without being solved.<\/p>\n<p>AngularJS expressions could be written inside double curly braces or can be written inside a directive.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<p><span style=\"color: #000000;\"><strong>Inside curly braces:<\/strong><\/span><\/p>\n<pre>&lt;div ng-app=\u201d\u201d&gt;\n&lt;p&gt;My first expression in Angular JS: {{3+3}}&lt;\/p&gt;\n&lt;\/div&gt;<\/pre>\n<p><span style=\"color: #000000;\"><strong>Inside directive:<\/strong><\/span><\/p>\n<pre>&lt;div ng-controller=\u201dName of your controller\u201d&gt;\n&lt;element\u00a0ng-bind=\"your expression\"&gt;&lt;\/element&gt;\n&lt;\/div&gt;<\/pre>\n<h4><span style=\"color: #ff6600;\">AngularJS Numbers<\/span><\/h4>\n<p>This datatype is just like the JavaScript datatype and operators could be used to display results.<\/p>\n<p><span style=\"color: #000000;\"><strong><span style=\"text-decoration: underline;\">Example:<\/span><\/strong><\/span><\/p>\n<pre>&lt;div ng-app=\u201d\u201d&gt;\n&lt;p&gt;The value of 5 times 10 is : {{5*10}}&lt;p&gt;\n&lt;\/div&gt;<\/pre>\n<h4><span style=\"color: #ff6600;\">AngularJS Strings<\/span><\/h4>\n<p>Strings can be initialized using ng-init directive or ng-controller directive. The concatenation of strings is also possible when the + operator is used within the expression.<\/p>\n<p>Strings also could be used as expressions within double curly braces or use ng-bind directive just like the AngularJS numbers.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<p><span style=\"color: #000000;\"><strong>Inside curly braces:<\/strong><\/span><\/p>\n<pre>&lt;div ng-app=\u201d\u201d ng-init=\u201dfirst string variable name=\u2019your first string\u2019;second string variable name\n=\u2019your second string\u2019\u201d&gt;\n&lt;p&gt;My first string expression in Angular JS: \n{{ first string variable name + second string variable name }}&lt;\/p&gt;\n&lt;\/div<em>&gt;<\/em><\/pre>\n<p><span style=\"color: #000000;\"><strong>Inside directive:<\/strong><\/span><\/p>\n<pre>&lt;div ng-app=\u201d\u201d ng-init=\u201d first string variable name=\u2019your first string\u2019; \nsecond string variable name=\u2019your second string\u2019\u201d&gt;\n\n&lt;p&gt;My first string expression in Angular JS:&lt;span\u00a0ng-bind=\n\" first string variable name + second string variable name \"&gt;&lt;\/span&gt;&lt;\/p&gt;\n\n&lt;\/div&gt;<\/pre>\n<h4><span style=\"color: #ff6600;\">AngularJS Objects<\/span><\/h4>\n<p>AngularJS objects behave the same way in which the JavaScript objects behave. The items within an object could be accessed using the dot operator.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<p><span style=\"color: #000000;\"><strong>Inside curly braces<\/strong><\/span><\/p>\n<pre>&lt;div ng-app=\u201d\u201d ng-init=\u201dyour object name=\n{first variable name=\u2019your first value\u2019,second variable name\n=\u2019your second value\u2019}\u201d&gt;\n&lt;p&gt;My first object in Angular JS: {{ your object name.second variable name }}&lt;\/p&gt;\n&lt;\/div&gt;<\/pre>\n<p><span style=\"color: #000000;\"><strong>Inside directive<\/strong><\/span><\/p>\n<pre>&lt;div ng-app=\u201d\u201d ng-init=\u201dyour object name={first variable name=\u2019your first value\u2019,second variable name\n=\u2019your second value\u2019}\u201d&gt;\n\n&lt;p&gt;My first object in Angular JS:&lt;span\u00a0ng-bind=\" your object name.second variable name \"&gt;&lt;\/span&gt;&lt;\/p&gt;\n\n&lt;\/div&gt;<\/pre>\n<h4><span style=\"color: #ff6600;\">AngularJS Arrays<\/span><\/h4>\n<p>AngularJS arrays behave the same way in which the JavaScript arrays behave.<\/p>\n<p>The items within an array could be accessed by denoting the value\u2019s index number within square braces. Please remember that the indexing starts from zero always, in an array, i.e., Array element 1 = index 0.<\/p>\n<p>Array element 2 = index 1 and so on.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<p><span style=\"color: #000000;\"><strong>Inside curly braces:<\/strong><\/span><\/p>\n<pre>&lt;div ng-app=\u201d\u201d ng-init=\u201dyour array name=[your first value,your second value]\u201d&gt;\n&lt;p&gt;My first array in Angular JS: {{ your array name[1] }}&lt;\/p&gt;\n&lt;\/div&gt;<\/pre>\n<p><span style=\"color: #000000;\"><strong>Inside directive:<\/strong><\/span><\/p>\n<pre>&lt;div ng-app=\u201d\u201d ng-init=\u201dyour array name=[your first value,your second value]\u201d&gt;\n&lt;p&gt;My first array in Angular JS: &lt;span\u00a0ng-bind=\"your array name[1] \"&gt;&lt;\/span&gt;&lt;\/p&gt;\n&lt;\/div&gt;<\/pre>\n<p><span style=\"color: #ff6600;\"><strong>A code snippet <span style=\"text-decoration: underline;\">Example<\/span> showing all the expressions in AngularJS is given below:<\/strong><\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41215\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.3directives-in-Angular-JS.png\" alt=\"1.3directives in Angular JS\" width=\"650\" height=\"533\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.3directives-in-Angular-JS.png 650w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.3directives-in-Angular-JS-300x246.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p><em>[image <a href=\"http:\/\/www.wikitechy.com\" rel=\"noopener nofollow\" target=\"_blank\">source<\/a>]<\/em><\/p>\n<p><strong>Please note, AngularJS:<\/strong><\/p>\n<ul>\n<li>Does not support conditionals, loops, and exceptions in expressions.<\/li>\n<li>Does not support function declaration (even inside the ng-init directive) in expressions.<\/li>\n<li>Does not support bitwise, comma, void and new operator in expressions.<\/li>\n<li>Ignores the null or undefined properties in expressions.<\/li>\n<li>Expressions are evaluated belonging to the scope object and not the global window.<\/li>\n<\/ul>\n<h3>AngularJS Filters<\/h3>\n<p>Filters are exclusive to AngularJS and are not present in the traditional JavaScript.<\/p>\n<p>The filters are used to modify output data to make them compatible with different input data. The filters could be used in expressions or directives with the help of the pipe operator.<\/p>\n<p><strong>These are the different kind of filters which are commonly used:<\/strong><\/p>\n<p><span style=\"color: #ff6600;\"><strong>Uppercase:<\/strong> <\/span>Helps to format the strings into uppercase.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre>&lt;div ng-app=\u201d\u201d ng-controller=\u201dfirst string variable name\u201d&gt;\n&lt;p&gt;My first string expression in uppercase in Angular JS: \n{{ first string variable name | uppercase}}&lt;\/p&gt;\n&lt;\/div&gt;<\/pre>\n<p><span style=\"color: #ff6600;\"><strong>Lowercase:<\/strong> <\/span>Helps to format the strings into lowercase.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre>&lt;div ng-app=\u201d\u201d ng-controller=\u201dfirst string variable name\u201d&gt;\n&lt;p&gt;My first string expression in lowercase in AngularJS: \n{{ first string variable name | lowercase}}&lt;\/p&gt;\n&lt;\/div&gt;<\/pre>\n<p><span style=\"color: #ff6600;\"><strong>Currency:<\/strong> <\/span>This filter is used on number expressions to convert them and display in terms of currency. Pipe operator could be used along with the number of expressions for this conversion.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre>&lt;div ng-app=\u201d\u201d ng-init=\u201dyour number value\u201d&gt;\n&lt;h1&gt;Price : {{ your number value | currency }}&lt;\/h1&gt;\n &lt;\/div&gt;<\/pre>\n<p><span style=\"color: #ff6600;\"><strong>Filter: <\/strong><\/span>This can be used only on arrays to select a subset of an array.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre>&lt;div ng-app=\u201d\u201d ng-controller=\u201dyour array name\u201d&gt;\n&lt;ul&gt;\n&lt;li ng-repeat=\u201dx in your array name | filter: \u2018i\u2019\u201d&gt;\n{{x}}\n&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;\/div&gt;<\/pre>\n<p><span style=\"color: #ff6600;\"><strong>orderBy: <\/strong><\/span>This filter can be added to directives such as ng-repeat to display them in order. Pipe operator can be used with the ng-repeat in unordered lists to achieve this.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre>&lt;div ng-app=\u201d\u201d ng-controller=\u201dyour object name\u201d&gt;\n&lt;ul&gt;\n&lt;li ng-repeat=\u201dx in your object name | orderBy:\u2019your desired order\u2019\u201d&gt;\n{{x.your first variable+x.your second variable}}\n&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;\/div&gt;<\/pre>\n<p><span style=\"color: #ff6600;\"><strong>The code <span style=\"text-decoration: underline;\">Examples<\/span> below show all the filters being used:<\/strong><\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41227\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/4.5-ANGULAR-JS-FILTERS.png\" alt=\"4.5 ANGULAR JS FILTERS\" width=\"650\" height=\"294\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/4.5-ANGULAR-JS-FILTERS.png 650w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/4.5-ANGULAR-JS-FILTERS-300x136.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41216\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.4ANGULAR-JS-FILTERS.png\" alt=\"1.4ANGULAR JS FILTERS\" width=\"650\" height=\"477\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.4ANGULAR-JS-FILTERS.png 650w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.4ANGULAR-JS-FILTERS-300x220.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p>AngularJS supports internalization for currency, numbers &amp; date and we just have to incorporate the corresponding JavaScript based on the country in which we deploy the application in.<\/p>\n<h3>How to Setup the Environment to Work with AngularJS?<\/h3>\n<p>Before creating our codebase and performing simple operations using AngularJS, we must set the environment up. Any text editor of the latest version such as Notepad ++ and a browser of your choice should be kept handy to start with.<\/p>\n<p>Now, navigate to the official website of <a href=\"https:\/\/angularJS.org\/\" rel=\"noopener nofollow\" target=\"_blank\">AngularJS<\/a> to download the desired version of AngularJS.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41217\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.5-download-the-desired-version-of-Angular-JS.png\" alt=\"1.5 download the desired version of Angular JS\" width=\"650\" height=\"650\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.5-download-the-desired-version-of-Angular-JS.png 650w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.5-download-the-desired-version-of-Angular-JS-150x150.png 150w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.5-download-the-desired-version-of-Angular-JS-300x300.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p><span style=\"color: #ff6600;\"><strong>Follow these steps to ensure proper download of the application:<\/strong><\/span><\/p>\n<p><strong>#1) Click on \u201cDownload AngularJS\u201d<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41218\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.6Download-Angular-JS.png\" alt=\"1.6Download Angular JS\" width=\"407\" height=\"349\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.6Download-Angular-JS.png 407w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.6Download-Angular-JS-300x257.png 300w\" sizes=\"(max-width: 407px) 100vw, 407px\" \/><\/p>\n<p><strong>#2) Enter the details based on the following:<\/strong><\/p>\n<p><strong>Branch:<\/strong> Choose a stable version (for new web pages) or legacy version (for using AngularJS on previously built websites).<\/p>\n<p><strong>Build:<\/strong> Choose between uncompressed (presented with proper formatting and indentation ensuring readability \u2013 development mode), minified (for deployment purposes to the production server, to create compressed versions of the developed code) or zip.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41219\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.7Enter-the-details.png\" alt=\"1.7Enter the details\" width=\"609\" height=\"429\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.7Enter-the-details.png 609w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.7Enter-the-details-300x211.png 300w\" sizes=\"(max-width: 609px) 100vw, 609px\" \/><\/p>\n<p><strong>CDN (Content Delivery Network):<\/strong> Specify CDN to get the AngularJS script file.<\/p>\n<p>This path can be customized (by adding a path from your local machine) or can be used as it is in the HTML code that you will be writing for your web pages.<\/p>\n<p><span style=\"color: #ff6600;\"><strong>Including script from CDN:<\/strong><\/span><\/p>\n<pre>&lt;script\nsrc=\u201d https:\/\/ajax.googleapis.com\/ajax\/libs\/angularJS\/1.7.2\/angular.min.js\u201d\ntype=\u201dtext\/javascript\u201d&gt;\n&lt;\/script&gt;<\/pre>\n<p><span style=\"color: #ff6600;\"><strong>Including script from local machine:<\/strong><\/span><\/p>\n<pre>&lt;script\nsrc=\u201d scripts\/angular.js\u201d\ntype=\u201dtext\/javascript\u201d&gt;\n&lt;\/script&gt;<\/pre>\n<p>Once the environment setup is done, you can run your first AngularJS program by including your code path within the HTML that you have created for your web page.<\/p>\n<h3>Your First Application<\/h3>\n<p>You can build a small HTML code as shown below and integrate your AngularJS script to start off your first programming experience with AngularJS.<\/p>\n<pre><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&amp;amp;lt;html&amp;amp;gt;\n&amp;amp;lt;head&amp;amp;gt;\n&amp;amp;lt;title&amp;amp;gt;Angular JS First application&amp;amp;lt;\/title&amp;amp;gt;\n&amp;amp;lt;\/head&amp;amp;gt;\n&amp;amp;lt;body&amp;amp;gt;\n&amp;amp;lt;h1&amp;amp;gt;First application&amp;amp;lt;\/h1&amp;amp;gt;\n&amp;amp;lt;div ng-app=\u201dMyApp\u201d&amp;amp;gt;\n&amp;amp;lt;p&amp;amp;gt;Enter your Name : &amp;amp;lt;input type=\u201dtext\u201d ng-model=\u201dname\u201d&amp;amp;gt;&amp;amp;lt;\/p&amp;amp;gt;\n&amp;amp;lt;p&amp;amp;gt;Hello &amp;amp;lt;span ng-bind=\u201dname\u201d&amp;amp;gt;&amp;amp;lt;\/span&amp;amp;gt;!&amp;amp;lt;\/p&amp;amp;gt;\n&amp;amp;lt;\/div&amp;amp;gt;\n&amp;amp;lt;script src=\u201d https:\/\/ajax.googleapis.com\/ajax\/libs\/angularJS\/1.7.2\/angular.min.js\u201d&amp;amp;gt;\n&amp;amp;lt;\/script&amp;amp;gt;\n&amp;amp;lt;\/body&amp;amp;gt;\n&amp;amp;lt;\/html&amp;amp;gt;\n<\/pre>\n<p>Once you save this file as HTML and run it on any browser, you will get the output as shown below.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41220\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.8-output.png\" alt=\"YOUR FIRST APPLICATION\" width=\"650\" height=\"271\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.8-output.png 650w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2018\/11\/1.8-output-300x125.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p>After successfully completing the execution of your first program, you can use AngularJS to simplify many complex programs in your projects.<\/p>\n<h3>Limitations of AngularJS<\/h3>\n<p><strong>Given below are few limitations of AngularJS:<\/strong><\/p>\n<ol>\n<li>It is not a very secure JavaScript framework. Server-side authorization and authentication are necessary and significant to keep the codebase secure.<\/li>\n<li>An application built using AngularJS is not degradable. This means that, when a user disables JavaScript, then he would just see the basic page and nothing apart from that.<\/li>\n<\/ol>\n<p>As observed, we know that the plus points are more, hence AngularJS is the most sought-after technology in recent times.<\/p>\n<p><em><strong>Also read =&gt;&gt; <a href=\"https:\/\/www.softwaretestinghelp.com\/d3-js-tutorial\/\">D3.js Tutorial For Beginners<\/a><\/strong><\/em><\/p>\n<h3>Conclusion<\/h3>\n<p>AngularJS is the most popular programming language in the market after python.<\/p>\n<p>It is preferred for building web applications and mostly SPAs in a cost-effective and effortless way. Its upgraded version is Angular 2. This programming language based on Angular JS is giving a new flavor to the object-oriented programming style.<\/p>\n<p><em><strong>Author<\/strong>:\u00a0Thanks to Ankit Srivastava for this series. He is having good experience in AngularJS and IoT app development.<\/em><\/p>\n<p><em><strong>Check out the upcoming AngularJS tutorials to explore more about AngularJS!!<\/strong><\/em><\/p>\n<p><a href=\"https:\/\/www.softwaretestinghelp.com\/angularjs-directive-example\/\"><strong>NEXT Tutorial<\/strong><\/a><\/p>\n\r\n\t\t\t<div id=\"daexthefup-container\"\r\n\t\t\t\tclass=\"daexthefup-container daexthefup-layout-stacked daexthefup-alignment-center\"\r\n\t\t\t\tdata-post-id=\"41189\">\r\n\r\n\t\t\t\t<div class=\"daexthefup-feedback\">\r\n\t\t\t\t\t<div class=\"daexthefup-text\">\r\n\t\t\t\t\t\t<h3 class=\"daexthefup-title\">Was this helpful?<\/h3>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"daexthefup-buttons-container\">\r\n\t\t\t\t\t\t<div class=\"daexthefup-buttons\">\r\n\t\t\t\t\t\t\t\r\n\t\t\t<div class=\"daexthefup-yes daexthefup-button daexthefup-button-type-icon\" data-value=\"1\">\r\n\t\t\t\t\r\n                <svg>\r\n                    <defs>\r\n                        <style>.thumb-up-cls-1{fill:#c9c9c9;}.thumb-up-cls-2{fill:#e1e1e1;}.thumb-up-cls-3{fill:#676767;}<\/style>\r\n                    <\/defs>\r\n                    <g id=\"thumb_up\">\r\n                        <path class=\"thumb-up-cls-2 daexthefup-icon-circle\" d=\"m24,3c11.58,0,21,9.42,21,21s-9.42,21-21,21S3,35.58,3,24,12.42,3,24,3m0-1C11.85,2,2,11.85,2,24s9.85,22,22,22,22-9.85,22-22S36.15,2,24,2h0Z\" \/>\r\n                        <g>\r\n                            <rect class=\"thumb-up-cls-3 daexthefup-icon-secondary-color\" x=\"10\" y=\"20\" width=\"6\" height=\"15\" rx=\"1.5\" ry=\"1.5\" \/>\r\n                            <path class=\"thumb-up-cls-1 daexthefup-icon-primary-color\" d=\"m30.57,9.06l-.49-.1c-.81-.17-1.61.35-1.78,1.16l-5.3,11.74c-.17.81,3.16,1.61,3.97,1.78l1.96.41c.81.17,1.61-.35,1.78-1.16l2.18-10.27c.34-1.61-.7-3.21-2.31-3.56Z\" \/>\r\n                            <path class=\"thumb-up-cls-1 daexthefup-icon-primary-color\" d=\"m38.17,20h-18.67c-.83,0-1.5.67-1.5,1.5v12c0,.83.67,1.5,1.5,1.5h16.27c.71,0,1.33-.5,1.47-1.21l2.4-12c.19-.93-.53-1.8-1.47-1.8Z\" \/>\r\n                        <\/g>\r\n                    <\/g>\r\n                <\/svg>\t\t\t<\/div>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t<div class=\"daexthefup-no daexthefup-button daexthefup-button-type-icon\" data-value=\"0\">\r\n\t\t\t\t\r\n                <svg>\r\n                    <defs>\r\n                        <style>.thumb-down-cls-1{fill:#c9c9c9;}.thumb-down-cls-2{fill:#e1e1e1;}.thumb-down-cls-3{fill:#676767;}<\/style>\r\n                    <\/defs>\r\n                    <g id=\"thumb_down\">\r\n                        <path class=\"thumb-down-cls-2 daexthefup-icon-circle\" d=\"m24,3c11.58,0,21,9.42,21,21s-9.42,21-21,21S3,35.58,3,24,12.42,3,24,3m0-1C11.85,2,2,11.85,2,24s9.85,22,22,22,22-9.85,22-22S36.15,2,24,2h0Z\" \/>\r\n                        <g>\r\n                            <rect class=\"thumb-down-cls-3 daexthefup-icon-secondary-color\" x=\"10\" y=\"13\" width=\"6\" height=\"15\" rx=\"1.5\" ry=\"1.5\" \/>\r\n                            <path class=\"thumb-down-cls-1 daexthefup-icon-primary-color\" d=\"m30.57,38.94l-.49.1c-.81.17-1.61-.35-1.78-1.16l-5.3-11.74c-.17-.81,3.16-1.61,3.97-1.78l1.96-.41c.81-.17,1.61.35,1.78,1.16l2.18,10.27c.34,1.61-.7,3.21-2.31,3.56Z\" \/>\r\n                            <path class=\"thumb-down-cls-1 daexthefup-icon-primary-color\" d=\"m38.17,28h-18.67c-.83,0-1.5-.67-1.5-1.5v-12c0-.83.67-1.5,1.5-1.5h16.27c.71,0,1.33.5,1.47,1.21l2.4,12c.19.93-.53,1.8-1.47,1.8Z\" \/>\r\n                        <\/g>\r\n                    <\/g>\r\n                <\/svg>\t\t\t<\/div>\r\n\r\n\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"daexthefup-comment\">\r\n\t\t\t\t\t<div class=\"daexthefup-comment-top-container\">\r\n\t\t\t\t\t\t<label id=\"daexthefup-comment-label\" class=\"daexthefup-comment-label\"><\/label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"daexthefup-comment-character-counter-container\">\r\n\t\t\t\t\t\t\t\t<div id=\"daexthefup-comment-character-counter-number\"\r\n\t\t\t\t\t\t\t\t\tclass=\"daexthefup-comment-character-counter-number\"><\/div>\r\n\t\t\t\t\t\t\t\t<div class=\"daexthefup-comment-character-counter-text\"><\/div>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<textarea id=\"daexthefup-comment-textarea\" class=\"daexthefup-comment-textarea\"\r\n\t\t\t\t\t\t\t\tplaceholder=\"Type your message\"\r\n\t\t\t\t\t\t\t\tmaxlength=\"\r\n\t\t\t\t\t\t\t\t400\t\t\t\t\t\t\t\t\t\"><\/textarea>\r\n\t\t\t\t\t<div class=\"daexthefup-comment-buttons-container\">\r\n\t\t\t\t\t\t<button class=\"daexthefup-comment-submit daexthefup-button\">Submit<\/button>\r\n\t\t\t\t\t\t<button class=\"daexthefup-comment-cancel daexthefup-button\">Cancel<\/button>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"daexthefup-successful-submission-text\">Thanks for your feedback!<\/div>\r\n\r\n\t\t\t<\/div>\r\n\r\n\t\t\t","protected":false},"excerpt":{"rendered":"<p>Introduction to AngularJS: What is\u00a0AngularJS, Its\u00a0Benefits, Features, and How to Download and Installation Guide AngularJS is a programming language that is becoming popular nowadays. It&#8217;s 2018, and the technological advancements have been at their peak this year. The programming languages such as Python, AngularJS, Ruby on Rails, React and Redux &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"AngularJS Tutorial for Absolute Beginners (with Installation Guide)\" class=\"read-more button\" href=\"https:\/\/www.softwaretestinghelp.com\/angularjs-tutorial\/#more-41189\" aria-label=\"Read more about AngularJS Tutorial for Absolute Beginners (with Installation Guide)\">Read more<\/a><\/p>\n","protected":false},"author":9,"featured_media":41268,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_helpful_pro_status":1,"footnotes":""},"categories":[521],"tags":[],"class_list":{"0":"post-41189","1":"page","2":"type-page","3":"status-publish","4":"has-post-thumbnail","6":"category-javascript"},"acf":[],"_links":{"self":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/pages\/41189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/comments?post=41189"}],"version-history":[{"count":4,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/pages\/41189\/revisions"}],"predecessor-version":[{"id":402129,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/pages\/41189\/revisions\/402129"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/media\/41268"}],"wp:attachment":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/media?parent=41189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/categories?post=41189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/tags?post=41189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}