Monday 23 December 2019

angularjs - what is the different between ['ngRoute', 'ui.router']?




var faraWorkspaceApp = angular.module("FaraWorkspace", ['ngRoute', 'ui.router']);


what is the different between ngRoute and ui.router in angularjs?


Answer



AngularUI Router is a routing framework for AngularJS, which allows you to organize the parts of your interface into a state machine. Unlike the $route service in the Angular ngRoute module, which is organized around URL routes, UI-Router is organized around states, which may optionally have routes, as well as other behavior, attached.




States are bound to named, nested and parallel views, allowing you to powerfully manage your application's interface.



From: https://github.com/angular-ui/ui-router


No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...