This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.5k
bindToController should support "scope" syntax/features #10420
Labels
Milestone
Comments
this looks reasonable, will mark it for 1.4.x and see what is the community feedback on this |
caitp
added a commit
to caitp/angular.js
that referenced
this issue
Dec 15, 2014
…new/isolate scopes bindToController is now able to be specified as a convenient object notation: ``` bindToController: { text: '@text', obj: '=obj', expr: '&expr' }, scope: {} ``` It can also be used in conjunction with new scopes, rather than exclusively isolate scopes: ``` bindToController: { text: '@text', obj: '=obj', expr: '&expr' }, scope: true ``` Closes angular#10420
caitp
added a commit
to caitp/angular.js
that referenced
this issue
Dec 15, 2014
…new/isolate scopes bindToController is now able to be specified as a convenient object notation: ``` bindToController: { text: '@text', obj: '=obj', expr: '&expr' }, scope: {} ``` It can also be used in conjunction with new scopes, rather than exclusively isolate scopes: ``` bindToController: { text: '@text', obj: '=obj', expr: '&expr' }, scope: true ``` Closes angular#10420
caitp
added a commit
to caitp/angular.js
that referenced
this issue
Jan 19, 2015
…new/isolate scopes bindToController is now able to be specified as a convenient object notation: ``` bindToController: { text: '@text', obj: '=obj', expr: '&expr' }, scope: {} ``` It can also be used in conjunction with new scopes, rather than exclusively isolate scopes: ``` bindToController: { text: '@text', obj: '=obj', expr: '&expr' }, scope: true ``` Closes angular#10420
caitp
added a commit
to caitp/angular.js
that referenced
this issue
Jan 27, 2015
…new/isolate scopes bindToController is now able to be specified as a convenient object notation: ``` bindToController: { text: '@text', obj: '=obj', expr: '&expr' }, scope: {} ``` It can also be used in conjunction with new scopes, rather than exclusively isolate scopes: ``` bindToController: { text: '@text', obj: '=obj', expr: '&expr' }, scope: true ``` Closes angular#10420
caitp
added a commit
to caitp/angular.js
that referenced
this issue
Jan 29, 2015
…new/isolate scopes bindToController is now able to be specified as a convenient object notation: ``` bindToController: { text: '@text', obj: '=obj', expr: '&expr' }, scope: {} ``` It can also be used in conjunction with new scopes, rather than exclusively isolate scopes: ``` bindToController: { text: '@text', obj: '=obj', expr: '&expr' }, scope: true ``` Closes angular#10420
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
currently, if you want to use "bindToController", you have to do this:
to simplify, bindToController should support the scope syntax and automatically set to true:
This helps explain what is actually happening and simplifies your code so it should be a simple win/win.
The text was updated successfully, but these errors were encountered: