ANGULARJS call function after click on button angularjs - Net-Raft.com

Welcome aboard! We are happy you are here and wish you good net-raft!




Just a Web Code Solution
join us

How to call the function after click on the button using angularjs ?


 440

ANGULARJS


2

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">

<script src="//code.angularjs.org/snapshot/angular.min.js "></script>

</head>

<body ng-app="getfunc" >

<div ng-controller="myfunc">

<button ng-click='go()'>click</button></br>

<div>Result:</div></br>

<span>{{str}}</span>

</div>

<script>

angular.module('getfunc', [])
.controller('myfunc', ['$scope', function ($scope) {

$scope.go = function () {

$scope.str = "Hello world!";

}

} ]);

</script>

</body>

</html>


By        
The power of the user (%)
8%



The most helpful ANGULARJS solutions

How to get client ip address using angularjs ?How to get client ip address using angularjs ?ANGULARJS

Click to see more ...

  19.6K     2.8K

How to get city from ip address with angularjs ?How to get city from ip address with angularjs ?ANGULARJS

Click to see more ...

  7.7K     1.4K

how to get client machine name and user name using angularjs ?how to get client machine name and user name using angularjs ?ANGULARJS

Click to see more ...

  11.9K     796

How to get local client ip address using angularjs ?How to get local client ip address using angularjs ?ANGULARJS

Click to see more ...

  5.8K     562

get client country using angularjs ?get client country using angularjs ?ANGULARJS

Click to see more ...

  2.9K     477

get region angularjsget region angularjsANGULARJS

Click to see more ...

  2.5K     414

How to get value from a href using angularjs ?How to get value from a href using angularjs ?ANGULARJS

Click to see more ...

  2.1K     369

how to fill a list from an another file in json format using angularjs ?how to fill a list from an another file in json format using angularjs ?ANGULARJS

Click to see more ...

  2.1K     352

How to move the value of checkbox to an html element in angular.js ?How to move the value of checkbox to an html element in angular.js ?ANGULARJS

Click to see more ...

  2.1K     203

get client time zone using angularjs get client time zone using angularjs ANGULARJS

Click to see more ...

  2.2K     201

Welcome aboard!
We are happy you are here and
wish you good net-raft!