Last active
January 15, 2016 17:38
-
-
Save wilmersondasilva/a49b197c48cae9fe4a2a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Não vamos colocar meta. Vamos deixar a meta aberta e quando atingirmos a meta, vamos dobrar a meta. | |
function metaCtrl($scope) { | |
$scope.$watch( | |
function($scope) { | |
return $scope.meta; | |
}, | |
function() { | |
if ($scope.meta) { | |
$scope.meta *= 2; | |
} | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment