Ng Src Directive In AngularJS

Angular js Application

Introduction to Angular JS Application

Angular JS is an open-source application. It was written in JavaScript. Angular JS was developed in the year 2010 by Google. Angular JS application provides a dynamic reference to web applications and pages as well. Angular JS lets you extend the HTML vocabulary for your application. Angular JS is used because HTML falters when it is being tried to use for declaring the dynamic views in web applications. Angular JS is referred to as the toolset for building the Framework most suited to your application development.

Angular JS framework features can be modified or replaced, reused to suit more or unique to workflow and for future reference. It is being fully extensible and works with other libraries as well. AngularJS Application code is plain in old javascript objects. It makes your code to test, maintain, reuse. In angular JS, there is no need to inherit from proprietary types in order to wrap up the models in accessors methods like we have to do in other. Angular JS has followed the latest concepts for development.

Concepts of Angular JS Application :

The concepts of Angular JS Application with their examples are as follows:

The feature directive is unique and available in other frameworks. The directives are written easily and can be generic also as it can be written once and reused many times. The directives are really useful and there are many reasons to use like when you have special needs as the custom grid or other functionality, the directive you want really doesn’t exist yet. The Angular JS Application directive starts with ‘ng-’ like ng-pp, ng-controller, ng-view, ng-model, ng-class, ng-click, ng-src, etc.


Looping with ng-repeat:

      {{ x }}



  • Scope:

It is used for the communication between controller and view. It binds a view to the view model and functions defined in controller Angular JS Application supports nested or hierarchical scopes. It is a data source for Angular JS Application and it can add or remove property when required. All the data manipulation and assignment of data happens through scope object when to do CRUD operation.

  • Controllers:

These are used to define the scope for the views and scope can be thought of as variables and functions that view may use some binding.


First Name:

Last Name:

Full Name: {{firstName + " " + lastName}}

  • Data Binding:

It synchronizes the data between the model and the view. It means the change in the model will update the view. The ng-model directive is used for two-way data binding.


When the user types into the text box the changed value shows in upper and lower case in a label that is two-way data binding.

  • Services:

It is used when the state has been shared across the application and need a solution for data storage. It can be a singleton and can be used by other components such as directives, controllers and other services. The services that are used is $http, $location, $log, $route, $filter, $document, $timeout, $exceptionHandler.

  • Routing:

It helps in dividing the app into multiple views and bind multiple views to controllers. It divides the SPA into multiple views to logically divide the app and make it more manageable.

Example: default route.







templateUrl: 'Views/list.html',

controller: 'ListController'




templateUrl: 'Views/add.html',

controller: 'AddController'



redirectTo: '/List'



  • Filters:

These are used to extend the behavior of binding expression and directive. It allows formatting the data and to format values or to apply certain conditions. Filters are invoked in HTML with the pipe inside expressions.



Filtering input:

    {{ ( | uppercase) + ', ' + x.age +',' }}

  • Expressions:

The expressions {{}} are the declarative way of specifying data binding location in HTML and using an expression for data binding. It can be added in HTML templates and does not support control flow statements but it support filters to format the data before displaying it.


Input something in the input box:


You wrote: {{ firstName }}

  • Modules:

    The module is the container of an application and application controllers belong to the module. It is a collection of functions and divides the application into the small and reusable functional component. A module can be identified by a unique name and can be dependent on other modules.



 //Referring module name myApp

{{ firstName + " " + lastName }}

  • Testing:

To test the Angular JS Application code, test frameworks are widely used like Jasmine and karma. These testing frameworks mainly support mocking and highly configurable using a JSON file with the help of various plug-in Angular JS Application.

Conclusion – Angular JS Application

Angular JS provides the framework which has unique directives and powerful features. Directives help us in building the new HTML syntax which is mainly specific to an application. It is being used as reusable components. The component allows you to hide complex structure and other behavior. The focus would be only on what the application does and how the application looks separately. Angular JS application is getting popular these days among the as it is easy to learn and develop the application. There are many opportunities in the market for the front end developer. If you are good with JavaScript, then Angular JS won’t be tough for you to learn and to update your skills with this technology would be a great idea.

Recommended Articles

This article has been a guide to Angular JS Application. Here we have discussed the Concepts of Angular JS Application with some example to get a better understanding. You may also look at the following article to learn more.

  1. Differences of Angular 5 and Angular 4
  2. What is Machine Learning?
  3. Differences Between JSON and BSON
  4. What is Laravel Framework?

Software Development Course - All in One Bundle

600+ Online Courses

3000+ Hours

Verifiable Certificates

Lifetime Access

Learn More

Source :

Thank You for Visiting My Website Check Out Our New Products !
Angular JS Application