Friday, 13 November 2015


What is ng-submit:ng-submit used to perform a particular task on form submission..
Description of ng-submit:ng-submit has priority 0..
Syntax of ng-submit:
<form ng-submit="myfun()">

How to Use ng-submit/ng-submit Example::

<div ng-app="webapp">
    <div ng-controller="angularjsexampleCtlr">
            Angularjs Example of ng-submit
            <form ng-submit="myfun()">



    angular.module('webapp', []).controller('angularjsexampleCtlr', function ($scope, $http) {
        $scope.myfun = function () {
            $scope.msg = "Hey this ng-submit result.";


No comments :

Post a Comment