Skip to content

Commit f013dad

Browse files
Merge pull request #1243 from dannynelson/master
fix(docs): fix bug in decorator example
2 parents 7045834 + 4bd00af commit f013dad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/state.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,11 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactory) {
317317
* <pre>
318318
* // Override the internal 'views' builder with a function that takes the state
319319
* // definition, and a reference to the internal function being overridden:
320-
* $stateProvider.decorator('views', function ($state, parent) {
320+
* $stateProvider.decorator('views', function (state, parent) {
321321
* var result = {},
322322
* views = parent(state);
323323
*
324-
* angular.forEach(view, function (config, name) {
324+
* angular.forEach(views, function (config, name) {
325325
* var autoName = (state.name + '.' + name).replace('.', '/');
326326
* config.templateUrl = config.templateUrl || '/partials/' + autoName + '.html';
327327
* result[name] = config;

0 commit comments

Comments
 (0)