We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
So you don't have to use $scope never ever again! :)
$scope
it should work like angular 2 https://angular.io/docs/ts/latest/api/core/OnChanges-interface.html
@Component({ selector: 'my-cmp', template: `<p>myProp = {{$ctrl.myProp}}</p>` }) class MyComponent implements OnChanges { @Input() myProp: any; ngOnChanges(changes: {[propName: string]: SimpleChange}) { console.log('ngOnChanges - myProp = ' + changes['myProp'].currentValue); } }
under the hood it should use probably $scope.watchGroup for perf reasons
$scope.watchGroup
The text was updated successfully, but these errors were encountered:
POC:
https://jsbin.com/pobipik/10/edit?js,output
Sorry, something went wrong.
7a19876
No branches or pull requests
So you don't have to use
$scope
never ever again! :)it should work like angular 2 https://angular.io/docs/ts/latest/api/core/OnChanges-interface.html
under the hood it should use probably
$scope.watchGroup
for perf reasonsThe text was updated successfully, but these errors were encountered: