What is AngularJS

Angularjs is an open source JavaScript framework to develop web based applications. It is usually used to create Single Page Application. It is easy to code in AngularJS.

Which javascript file we used to work with angularJS

we use angular.js javascript file to work with angularJS

Features of AngularJS

There are lots of feature in angularJS and some of these are as follows: -

What is directives

Directives in angularJS extends HTML code to provide new behaviour.

What ng represent

Ng represents angular.

What is ng-app directive

ng-app directive is the beginning directive of angularJS. It is used to auto bootstrap angularJS application. We generally use this directive at root level like inside html tag or in body tag.

What is data-ng-app

We use data-ng-app directives to validate HTML5 because it will consider data-ng-app as custom attribute. If we will write only ng-app then html5 validator throw an exception.

What is module in angularjs

Module in angularjs is just like container which is having the business logics, controllers, services etc. it is just like main. As main contain the startup logic and in angularjs we use module for startup.

What is controller

In angularjs controller is javascript function object.

What is $scope in angularjs

$scope is the kind of object which represents the application model. It is used to pass data between view and controller. We can add properties in this scope and we can use it.