Answer the question
In order to leave comments, you need to log in
How to resolve conflict between angularJS and zurb foundation framework?
function ctrl($scope, $http, $location) {
$scope.DOM = {
el: $('#signUp')
};
$scope.response = function(){
alert(123);
}
$scope.add = function(){
$scope.DOM.el.on('valid', $scope.response());
}
}
<form action="" method="" data-abide="ajax" ng-controller="ctrl" ng-submit="add()">
<div class="name-field">
<label>
<input type="text" name="name" placeholder="Имя" required ng-model="user.name" />
</label>
<small class="error">Необходимо ввести имя</small>
</div>
<button type="submit">Нажать</button>
</form>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question