Skip to content

Commit

Permalink
options.autoLoadTemplates = true by default
Browse files Browse the repository at this point in the history
  • Loading branch information
artch committed Apr 7, 2014
1 parent f3202a9 commit afab3ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions build/angular-route-segment.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ angular.module( 'route-segment', [] ).provider( '$routeSegment',
* contents into `template`.
* @type {boolean}
*/
autoLoadTemplates: false,
autoLoadTemplates: true,

/**
* When true, all attempts to call `within` method on non-existing segments will throw an error (you would
Expand Down Expand Up @@ -474,7 +474,7 @@ angular.module( 'route-segment', [] ).provider( '$routeSegment',

// Watching for the specified route segment and updating contents
$scope.$on('routeSegmentChange', function(event, args) {
console.log('event',args);

if(args.index == viewSegmentIndex && currentSegment != args.segment)
update(args.segment);
});
Expand Down Expand Up @@ -502,8 +502,6 @@ angular.module( 'route-segment', [] ).provider( '$routeSegment',
tElement.replaceWith(anchor);
}

console.log('update',segment);

if(!segment) {
clearContent();
currentElement = tElement.clone();
Expand Down
2 changes: 1 addition & 1 deletion build/angular-route-segment.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/route-segment.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ angular.module( 'route-segment', [] ).provider( '$routeSegment',
* contents into `template`.
* @type {boolean}
*/
autoLoadTemplates: false,
autoLoadTemplates: true,

/**
* When true, all attempts to call `within` method on non-existing segments will throw an error (you would
Expand Down

0 comments on commit afab3ae

Please sign in to comment.