Skip to content
New issue

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

$watch controller memebers independent controllerAs allias #780

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion a1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,9 @@ While this guide explains the *what*, *why* and *how*, I find it helpful to see
var vm = this;
vm.title = 'Some Title';

$scope.$watch('vm.title', function(current, original) {
$scope.$watch(function(){
return vm.title;
}, function(current, original) {
$log.info('vm.title was %s', original);
$log.info('vm.title is now %s', current);
});
Expand Down