Skip to content

Commit

Permalink
fix(docs): fix bug in decorator example
Browse files Browse the repository at this point in the history
  • Loading branch information
dannynelson committed Aug 2, 2014
1 parent 5e88789 commit 4bd00af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,11 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactory) {
* <pre>
* // Override the internal 'views' builder with a function that takes the state
* // definition, and a reference to the internal function being overridden:
* $stateProvider.decorator('views', function ($state, parent) {
* $stateProvider.decorator('views', function (state, parent) {
* var result = {},
* views = parent(state);
*
* angular.forEach(view, function (config, name) {
* angular.forEach(views, function (config, name) {
* var autoName = (state.name + '.' + name).replace('.', '/');
* config.templateUrl = config.templateUrl || '/partials/' + autoName + '.html';
* result[name] = config;
Expand Down

0 comments on commit 4bd00af

Please sign in to comment.