Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Clarify required `ui-view`
  • Loading branch information
Mark Lagendijk committed Feb 26, 2015
1 parent e4a23a4 commit c7dab74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ A helper module for AngularUI Router, which allows you to define your states as

## Usage
``` javascript
// NOTE: when using child states with views you should make sure that its parent has a template containing a `ui-view` directive.
angular.module('myApp', [ 'ui.router', 'ui.router.stateHelper' ])
.config(function(stateHelperProvider){
stateHelperProvider
Expand All @@ -17,7 +18,7 @@ angular.module('myApp', [ 'ui.router', 'ui.router.stateHelper' ])
children: [
{
name: 'contacts',
templateUrl: 'contacts.html',
template: '<ui-view />',
children: [
{
name: 'list',
Expand Down

0 comments on commit c7dab74

Please # to comment.