Last active
June 28, 2016 23:14
-
-
Save Greenie0506/aad74e7a67a9fec225b961b65b841926 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scope.$watch( | |
'feed', | |
function( | |
newVal, | |
oldVal | |
) { | |
$scope.form.changed = ( newVal != oldVal ) ? | |
true : | |
$scope.form.changed; | |
}, | |
true | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i'd probably write it like this
but that ternary is totally extraneous. this is the same: