Tag Archives: AngularJS

AngularJS

Set up the Angular Development Environment

Set up the Angular Development Environment Step 1 : Install Node.js and npm Download Link: https://nodejs.org/en/download Notes : Verify that we are running at least node 6.9.x and npm 3.x.x by running node -v and npm -v in a terminal/console window. Step 2 : Install the Angular CLI globally.Use “npm install -g @angular/cli” command through console… Read More »

Which are the features in Angular JS ?

Hi friends, You all are familiar in Angular JS. I just want to point out the main features of Angular JS in glance. The features of Angular JS are 1. Templates 2. Directives 3. Modules 4. Scope 5. Expressions 6. Filters 7. MVC (Model, View & Controller) 8. Validations 9. Data Binding 10. Routing 11.… Read More »

When to use $destroy() function of scope?

$destroy() function permanently detaches the current scope with all of its children’s from its parent scope. This is required when child scopes are no longer needed. So, $destroy() function is called to remove these scopes from the browser’s memory. When $destroy() is called all the watchers and listeners get removed and the object which represented… Read More »

What is $scope in Angular ?

$scope is an object instance of a controller in Angular. Object instance gets created when “ng-controller” directive is encountered.The scope is a JavaScript object with properties and methods, which are available for both the view and the controller. When parser finds “ng-controller” directive which is pointing to method. It creates an instance of $scope and… Read More »

Expressions in Angular

Expressions in AngularJS is handled using double braces – {{ expression }}. It can be also written inside a directive – ng-bind=”expression”.They can contain variables, literals, and operators. Example – {{ 10 + 5 }} or {{ String1 + ” ” + String2 }}

What is Angular JS ?

AngularJS is a JavaScript framework. ng-directives used in Angular JS. ng-app – AngularJS application. ng-model – Binds the value of HTML controls. ng-bind – Binds application data to the HTML view. Example