SHARE
TWEET
Untitled
a guest
Oct 20th, 2016
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- function formValidation() {
- return {
- restrict: 'C',
- replace: false,
- scope: {
- city: '=addCardScope'
- },
- link: function ($scope, $element, $attrs) {
- $scope.$watch('addCardScope.city', function(v) {
- console.log("Value from City: " + $scope.city);
- console.log("Value from City V: " + v);
- });
- }
- };
- }
- ===========================================
- ================ HTML =====================
- ===========================================
- <form id="ccForm" class="form-validation customer-address-form" name="ccForm" formid="ccForm" action="" method="post">
- <input id="city" type="text" class="validate" ng-model="addCardScope.city" maxlength="30" />
- <div>{{city}}</div>
- </form>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
