UrbanPro
true

Learn Angular.JS from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

AngularJS Basics- 1

Debadutta
31/03/2017 0 0

This is my first blog.I am just explaining the basics of AngularJS and Sample application in an interesting way so that anyone can create an Angular application. Let’s see how we can create :)

Angular.js is a MV* (Model – View – Whatever) JavaScript framework which is maintained by Google which excels in the creation of single-page-applications or even for adding some “magic” to our classic web applications.

Let's get started :) -

Why Angular?

If you are using JavaScript to create a Dynamic Website, Angular is a good choice.

It's a client-side JavaScript framework for adding to HTML.

    1) Angular Helps you organize your JavaScript.

    2) Angular helps create responsive (as in fast) websites

    3) Angular plays well with JQuery

    4) Angular is easy to test.

Traditional Server Side Response-Request:-

 

AngularJS response-request:-

 

In this Blog we will learn about basic and sample application:-

1) Directives

2) Module

4) Expression

3) Controller

Directives:-

A directive is a marker on a HTML tag that tells Angular to run on reference some JavaScript code.

Before we proceed, download the below libraries which we are going to use:-

AngularJS: - http://angularjs.org/

We'll need angular.min.js

Twitter Bootstrap: - http://getbootstrap.com/

We'll need bootstrap.min.cs

Getting Started:-

 

Just create an empty web application.

Add two folders: - scripts and stylesheet.

Inside script folder copy angular.min.js and and inside styleshhet bootstrap.min.css.

Then add app.js new JavaScript file in scripts folder and index.htm to create our first AngularJS application. 

2) Modules:-

What's a module in AngularJS? Here it is:-

Where we write piece of our Angular application.

Make our code more maintainable, testable and readable.

Where we define dependencies for our app.

 

Creating our first module inside app.js.

 

Including our module in index.html:-

 

3) Expressions:-

What's is expression?

Expression allow you to insert dynamic values into your HTML.

 

4) Controllers:-

What's a controller in AngularJS?

Controller is where we define our app's basic behavior by defining function and values.

 

 

Referencing controller in index.html in

 

Below is the code snippet to create your first application.

 

 So here how we can create a simple AngularJS application.

 

So in this blog we learned basic of AngularJS Directives, Module, Expression and Controller and kick started.

In my coming blogs we'll deep dive into AngularJS and learn more.

0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

Difference Between JavaScript and AngularJs
JavaScript: JavaScript is a programming language written for websites to run in the browser. It is used to validate the user input at browser level itself before submitting the page to server for...
S

Angular Interview Questions
Ques: Explain the bootstrapping process of angular? Ques: Define the architecture of angular? Ques: What is component? Can you write syntax of decorator for any component? Ques: - Say me the name of...

Embedding and including
Let's first see a simple example: This is a JavaScript example Usually, JavaScript code starts with the tag . The code placed between and . Sometimes, people embed the code in the tags: Why do we...

Angular-2 Developer Training Program Syllabus
Angular2 Developer Training Program Syllabus: Introduction to Angular2. Why Angular2. Angular2 Features: Components, Services and Typescript. Angular2 Components: Templates, Modules, Services...

Learning a new technology
Each and every day new technologies are getting introduced. Its quite clear that to be part of the fast moving professional world you should be upto date with the cutting edge technologies in the market....
S

Saurav Singh

1 0
0
X

Looking for Angular.JS Classes?

The best tutors for Angular.JS Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Angular.JS with the Best Tutors

The best Tutors for Angular.JS Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more