The text of this article is not in this database — only its details are. Read it on the old site: Passing Argument in the Controller of AngularJS
3 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Passing Argument in the Controller of AngularJS
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
raju saratkarPosted Sep 29, 2015, 3:07 AM
<script> var app = angular.module('myApp', []); app.controller('carcontrol', function($scope) { $scope.notgood = 'Not so Good'; $scope.cartest = 'Awesome'; $scope.test1 = function (cartest) { $scope.cartest = cartest; } }); </script>
p kumarPosted Sep 16, 2015, 6:13 AM
Hi, I am not getting the result as excepted.. I see output as This Car is {{cartest}} ... even after clicking the button..