From c7dab748f0f0b49d47da28b3793bd0560eddbcef Mon Sep 17 00:00:00 2001 From: Mark Lagendijk Date: Thu, 26 Feb 2015 21:22:14 +0100 Subject: [PATCH] Update README.md Clarify required `ui-view` --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dd1703e..181bf84 100644 --- a/README.md +++ b/README.md @@ -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 @@ -17,7 +18,7 @@ angular.module('myApp', [ 'ui.router', 'ui.router.stateHelper' ]) children: [ { name: 'contacts', - templateUrl: 'contacts.html', + template: '', children: [ { name: 'list',