Js
var myApp = angular.module("DataEntryApp", []);
myApp.controller("DataEntryController",function($scope) {
alert("totalPrice?" + $scope.totalPriceAmt);
}
$scope.Add = function() {
alert("Total amount commint:" +$scope.totalPriceAmt);
};
Html Seite html inwie berechnete Werte (totalPriceAmt) von js erhalten durch Verwendung Winkel js
Ich bin nicht in der Lage, die Werte totalPriceAmt
in HTML-Seite zu erhalten, nachdem auf submit
Schaltfläche klicken oder Ich möchte totalPrice
in HTML direkt anzeigen.
den Umfang Variable in Alert Einlochen initialisiert nicht den Wert :), versuchen Sie den Wert wie die Zuordnung '$ scope.totalPriceAmt = XXX;' – MasterMohsin