Hi, freddy sidauruk

below is the code for your problem.

<!DOCTYPE html>
<html>
<script src= "
http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js
"></script>
<body>
<div ng-app="myApp" ng-controller="myCtrl">
multiply : <input type="text" ng-model="multiple "><br>
</div>

<script>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
    $scope.firstName= 10;
    $scope.lastName=20;
    $scope.multiple = $scope.firstName * $scope.lastName
});
</script>

</body>
</html>


On Mon, May 4, 2015 at 4:05 PM, freddy sidauruk <[email protected]>
wrote:

>
>
> On Monday, May 4, 2015 at 5:33:36 PM UTC+7, freddy sidauruk wrote:
>>
>> Hello Angular,
>>
>> i'm new at angular and face problem how can i make multiplication and put
>> the result in input type text ? and also how about there is array
>> multiplication anyone can help me?
>>
> here is my simple demo  http://jsfiddle.net/pd2yzfLx/
>
>>
>> Thanks
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to