Angular form ng submit Directive

Rate this post

Angular form ng submit Directive

Today, We want to share with you Angular form ng submit Directive.
In this post we will show you Angular ng-submit Directive, hear for AngularJS Form Submit with Example we will give you demo and example for implement.
In this post, we will learn about AngularJS Tutorial: Submitting form with ng-submit with an example.

The ng-submit one type of directive or events specifies call a function to run when the HTML form is submitted data send to js function.

Syntax for ng-submit

[html]


[/html]

index.html

[html]

angularjs form ng-submit example – AngularJS (Pakainfo.com)
https://ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.min.js


READ :  Top AngularJS Interview Questions and answers

Create a Sales Item Data


Sales Item Code
Description
UOM
P/o No.
Qty
Rate
Delivery Date
Tax
Sub Total
Total


No ItemCode Description UOM Po/no QTY Rate Delivery Date Tax Sub Total Total
{{$index}} {{sl.itemcode}} {{sl.description}} {{sl.uom}} {{sl.pono}} {{sl.qty}} {{sl.rate}} {{sl.ddate}} {{sl.tax}} {{sl.subtotal}} {{sl.total}}

Solution of AngularJs All Problems For Pakainfo.com

My First Web-Application in angularjs, So I am very happy and 1000+ more then people are used of Pakainfo.com

var app=angular.module(‘infinityknowApp’,[]);
app.controller(‘infinityknowCtrl’, function($scope)
{
$scope.SalesLineList = [];
$scope.createSales = function(sales){
$scope.SalesLineList.push(sales);
//console.log(sales);
//alert(JSON.stringify(sales.itemcode));
//alert(JSON.stringify(sales));
};
})

[/html]

We hope you get an idea about Angular form ng submit Directive
We would like to have feedback on my Information blog .
Your valuable any feedback, Good question, Inspirational Quotes, or Motivational comments about this article are always welcome.
If you liked this post, Please don’t forget to share this as Well as Like FaceBook Page.

READ :  Angular Authentication API PHP MySQLi

We hope This Post can help you…….Good Luck!.

Leave a Reply

Your email address will not be published.