Improve this doc View source

Dependencies

ui.router

The main module for ui.router

There are several sub-modules included with the ui.router module, however only this module is needed as a dependency within your angular app. The other modules are for organization purposes.

The modules are:

You'll need to include only this module as the dependency within your angular app.

<!doctype html>
<html ng-app="myApp">
<head>
  <script src="js/angular.js"></script>
  <!-- Include the ui-router script -->
  <script src="js/angular-ui-router.min.js"></script>
  <script>
    // ...and add 'ui.router' as a dependency
    var myApp = angular.module('myApp', ['ui.router']);
  </script>
</head>
<body>
</body>
</html>