We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47d5dcc commit 586f2e4Copy full SHA for 586f2e4
src/angular-component.js
@@ -37,13 +37,13 @@
37
38
return {
39
controller: options.controller || angular.noop,
40
- controllerAs: identifierForController(options.controller) || options.controllerAs || name,
+ controllerAs: identifierForController(options.controller) || options.controllerAs || '$ctrl',
41
template: makeInjectable(
42
!options.template && !options.templateUrl ? '' : options.template
43
),
44
templateUrl: makeInjectable(options.templateUrl),
45
transclude: options.transclude === undefined ? true : options.transclude,
46
- scope: (options.isolate === false ? true : (options.bindings || {})),
+ scope: {},
47
bindToController: !!options.bindings,
48
restrict: options.restrict || 'E'
49
};
0 commit comments