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

Some good resources
Clean Code by Robert C Martin, is available in my profile please download and read it, irrespective of what language you code in, it will change the way you code. Also if you code in Javascript read https://12factor.net/ https://blog.risingstack.com/javascript-clean-coding-best-practices-node-js-at-scale/ For...

Introduction to Programming Languages
What is a Programming Language? A programming language is a formal computer language or constructed language designed to communicate instructions to a machine, particularly a computer. Programming languages...

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

What Is Dependency Injection (DI)?
Dependency Injection is a powerful pattern for managing code dependencies. DI is a way to create objects that depend upon other objects. Angular has its own DI framework pattern, and you really can't build...
K

Kumar

0 0
0

Angular 4/5 Course
Angular 4/5 Syllabus: HTML Fundamentals: HTML Introduction How WebWorks? What is a Web Page? HTML Basic HTML Fundamentals HTML Attributes HTML Styles HTML Controls HTML Formatting HTML...
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