Category Archives: Angular Js

AngularJS Dependency Injection

The dependency injection (DI) in angularjs is an important application design pattern. The dependency injection implements inversion of control for resolving dependencies and also it is a software design pattern. AngularJS provides a supreme dependency injection mechanism. AngularJS contains the following core types of objects and components: Value Factory Service Provider Constant Value The value… Read More »

AngularJS – Services

The service will helps to fetch data from the database when to share the data between controllers. If we store the data inside a controller, once we change to another controller the data will be discarded. AngularJS has 30 built in services. Types of Services in AngularJS Built-in Services: The angularjs has inbuilt services. That’s… Read More »

AngularJS – Views

Via multiple views on a single page the angularjs supports single page application. To do this AngularJS has provided ng-view and ng-template directives and $routeProvider services. ng-view ng-view tag simply creates a place holder where a corresponding view (html or ng-template view) can be placed based on the configuration.The ng-view is the directive that angular… Read More »

AngularJS – Includes

The HTML does not support to include the client side code from the other files. Consider the example, if you want to develope the application for numberic operations. If we define or write the functionality in a separate files; that separate files can re-used across multiple application where we want. For performing this application we… Read More »

AngularJS – Forms

In angularjs, form provides data-binding and validation of input controls.It provide form filling and form validation in angularjs. Input controls helps for user enter the data and a form is a collection of controls for the purpose of grouping related controls together. Following are the input controls used in AngularJS forms: input elements select elements… Read More »

AngularJS – Modules

AngularJS supports modular approach. Modules are used to separate logics say controllers, services, application etc and keep the code clean. It is define in separate js file. The controllers always belong to a module. Creating a Module The angular.module function helps to create a module in angularjs. … The “myApplicaion” parameter refers to an HTML… Read More »

AngularJS Tables

In the HTML, the tables are the one of the common elements when working with web page. Tables in HTML are designed using the HTML tag. <table> tag – This is the main tag used for displaying the table. <tr> – This tag is used for segregating the rows within the table. <td> – This… Read More »