Skip to content

Commit f1ddf0e

Browse files
author
Boris Litvinsky
committed
Set $ctrl as default controllerAs param and removed option to configure scope (set it isolated by default).
All this in order to be complient with latest changes to angular 1.5: angular/angular.js#13710
1 parent 586f2e4 commit f1ddf0e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/angular-component.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838

3939
return {
4040
controller: options.controller || angular.noop,
41-
controllerAs: identifierForController(options.controller) || options.controllerAs || name,
41+
controllerAs: identifierForController(options.controller) || options.controllerAs || '$ctrl',
4242
template: makeInjectable(
4343
!options.template && !options.templateUrl ? '' : options.template
4444
),
4545
templateUrl: makeInjectable(options.templateUrl),
4646
transclude: options.transclude === undefined ? true : options.transclude,
47-
scope: (options.isolate === false ? true : (options.bindings || {})),
47+
scope: {},
4848
bindToController: !!options.bindings,
4949
restrict: options.restrict || 'E'
5050
};

dist/angular-component.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)