Skip to content

Commit 4bd00af

Browse files
committed
fix(docs): fix bug in decorator example
1 parent 5e88789 commit 4bd00af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/state.js

+2-2
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)