Angular Top 10 Example for Beginners

Angular Top 10 Example for Beginners

Today, We want to share with you Angular Top 10 Example for Beginners.
In this post we will show you Angular Top 10 Example for Beginners, hear for Angular Top 10 Example for Beginners we will give you demo and example for implement.
In this post, we will learn about Angular Top 10 Example for Beginners with an example.

Example : 1 Simple Hello-world

 

<a href="https://infinityknow.com/libs/angular.min.js">https://infinityknow.com/libs/angular.min.js</a>


<div>
  <p>First Name : </p>
  <h1>Hello <mark>{{fname}}</mark></h1>
</div>


   

Example : 2 AngularJS Expressions Example


<a href="https://infinityknow.com/libs/angular.min.js">https://infinityknow.com/libs/angular.min.js</a>


<div>
  <p>My Simple First(Addition) Expression: <mark>{{ 5 + 5 }}</mark></p>
  <hr />
  <p>My Simple Second(Color init mode) Expression:</p>
  <hr />
  <p>My Simple Third (Total in price) Expression: {{ qty * cprice }}</p>
</div>



Example : 3 AngularJS Arrays Example


<a href="https://infinityknow.com/libs/angular.min.js">https://infinityknow.com/libs/angular.min.js</a>


<div>
	<p>The First result display {{ points[0] }}</p>
	<p>The Second result display {{ points[1] }}</p>
	<p>The third result display {{ points[2] }}</p>
	<hr />
	<p>The First result display <span></span></p>
	<p>The Second result display <span></span></p>
	<p>The third result display <span></span></p>
</div>



Example : 4 Simple AngularJS Application




    <title>My Simple AngularJS Application</title>
    <a href="https://infinityknow.com/libs/angular.min.js">https://infinityknow.com/libs/angular.min.js</a>


    <h1>Simple AngularJS Application</h1>

    <b>Enter Two Numbers to Multiply: </b>
     x  
    = <span><mark>{{number1 * number2}}</mark></span>  


Example : 5 The ng-app Directive Example



    <title>The ng-app Directive Example</title>
    <a href="https://infinityknow.com/libs/angular.min.js">https://infinityknow.com/libs/angular.min.js</a>


    <h1>The ng-app Directive Example</h1>
<div>
	{{8/8}}
</div>
<div id="simplemydiv">
	{{9/2}}
	<div>
		{{25/3}}

	</div>
</div>
<div>
	{{4/6}}
</div> 


Example : 6 AngularJS Expression(ADD_SUB_MUL_DIV):



    <title>AngularJS Expression(ADD_SUB_MUL_DIV)</title>
    <a href="https://infinityknow.com/libs/angular.min.js">https://infinityknow.com/libs/angular.min.js</a>


    <h1>AngularJS Expression(ADD_SUB_MUL_DIV)</h1>
<div>
        5 + 4 = {{5 + 4}} <br />
        5 - 4 = {{5 - 4}} <br />
        5 * 4 = {{5 * 4}} <br />
        5 / 4 = {{5 / 4}}
</div>


Example : 7 AngularJS Controller: Example



    <title>AngularJS Controller: Example</title>
    <a href="https://infinityknow.com/libs/angular.min.js">https://infinityknow.com/libs/angular.min.js</a>


	<h1>AngularJS Controller: Example</h1>
    <div>
        {{ctrlmessage}}
    </div>
    
        var myngApp = angular.module('infinityknowApp', []);

        myngApp.controller('simpleCtrl', function ($scope) {
            $scope.ctrlmessage = "Wel-come to Hello World! Example with controller";        
        });
    


Example : 8 Scope in AngularJS: Example



    <title>AngularJS Controller: Example</title>
    <a href="https://infinityknow.com/libs/angular.min.js">https://infinityknow.com/libs/angular.min.js</a>


	<h1>AngularJS Controller: Example</h1>
    <div>
         Your Controller Message: <br />
        {{ctrlmessage}}<br />
        <span></span> <br />
         
    </div>
    
        var myngApp = angular.module('infinityknowApp', []);

        myngApp.controller('simpleCtrl', function ($scope) {
            $scope.ctrlmessage = "Wel-come to Hello World! Example with controller";        
        });
    


Example : 9 ng-repeat directive in AngularJS Example




    <title> ng-repeat directive in AngularJS Example</title>
    <a href="https://infinityknow.com/libs/angular.min.js">https://infinityknow.com/libs/angular.min.js</a>


    <h1> ng-repeat directive in AngularJS Example</h1>
<ol>
	<li>
		{{name}}
	</li>
</ol>
<div>
	{{name}}
</div> 


Example : 10 ng-if, ng-readonly, ng-disabled Example




    <title>ng-if, ng-readonly, ng-disabled Example</title>
    <a href="https://infinityknow.com/libs/angular.min.js">https://infinityknow.com/libs/angular.min.js</a>


    <h1>ng-if, ng-readonly, ng-disabled Example</h1>

   Please Click Me Here:  <br />
    <div>
        New: 
    </div>
	<hr />
    <div>
        Simple Read-only directive: 
    </div>
	<hr />
    <div>
        Disabled directive: 
    </div>


READ :  VueJS Installation and Configuration - VueJS Environment Setup

Add a Comment

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