Introduction to angular.js services


Services is a unit of code which can be used across the project controllers. Means when we create a service we can use it in any controllers of our project. Services required when we need to use the same code in multiple places. Services can be utilities or business logic unit which means whenever you write any kind of code as part of a service you had to consider that code to be almost independent of that particular controller. It also some business logic code.
Why services –
1-Services provides lots of built-in functionality
2-Best place to implement reusable code
3-Clean and maintainable code

Read More

Use ui router in angular | Steps for adding ui router in angular app | How to use ui-router in angular

ui router

A router is used for linking URL to controller and views. ui router is complete routing framework for angular. ui router use states for routing. A state is a unit of is more comprehensive navigation criteria. ui router use for creating multiple view in  single page applications. 
Key point of ui-router
         1- ui-router use when you switch from one route to another
         2- You can use multiple views in ui-router
         3- You can nested views in ui-router
         4- It can have multiple instances

Read More