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

Why Angular JS?
Interactive Web Application HTML and CSS are not interactive. You cannot create interactive applications using HTML and CSS. JavaScript allows you to interact with a web page like clicking a button,...
P

Introduction to Angular JS
What is AngularJS? AngularJS is a structural framework for dynamic web apps. It lets you use HTML as your template language and lets you extend HTML's syntax to express your application's components clearly...

Why AngularJS Got Popular
AngularJS became very popular due to its easy two-way data binding, MVC architecture, built-in module system, dependency injection, and routing package. Initially built as a hobby project by Misko Hevery...

Angular Js Workshop & Courses
AngularJS is an open source JavaScript framework by Google to build web applications. It can be freely used, changed and shared by anyone. Prerequisite: Before learning AngularJS, you must...

$rootScope in Angular JS
$rootScope refers to an object which is accessible from everywhere of the application. You can think $rootScope as global variable which can be accessible in all controllers, services, directives. The...
P
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