Routing
Routing helps to divide the application into views and bind the different views through controllers.
As we develop an application by including more logic, it becomes difficult to manage. Therefore, dividing the user interface into views and using the routing feature to load different parts of application makes it easily manageable.
- The routing logic is part of the
isc.sharedmodule. - The routing module allows navigating between multiple views and it is achieved by
using the
iscStatedirective andiscStateservice. The routing logic provided by the application is similar to the implementation provided inng-routeandui-routermodules. - Instead of using the URL to load different templates, the application router stores the history of navigation in its own stack.
- The routing implementation provides features like selectively excluding views in the stack history, checking resource permissions, and so on.
For more information about modules, directives and services refer the AngularJS documentation available with the application.