The largest Interview Solution Library on the web



Warning: include(../../menu/leftMenu/angularjsservice.php) [function.include]: failed to open stream: No such file or directory in /home/javatech/public_html/question/angularjsexample/angularjs-service.php on line 36

Warning: include(../../menu/leftMenu/angularjsservice.php) [function.include]: failed to open stream: No such file or directory in /home/javatech/public_html/question/angularjsexample/angularjs-service.php on line 36

Warning: include() [function.include]: Failed opening '../../menu/leftMenu/angularjsservice.php' for inclusion (include_path='.:/opt/alt/php53/usr/share/pear:/opt/alt/php53/usr/share/php') in /home/javatech/public_html/question/angularjsexample/angularjs-service.php on line 36
« Previous | 1 | 2 | 3 | Next »

Let's try this simple notify service, injected into the controller...

(you have to click 3 times to see an alert)

<script src="script.js"></script>
<script src="protractor.js"></script>
<div id="simple" ng-controller="MyController">
<p>Let's try this simple notify service, injected into the controller...</p>
<input ng-init="message='test'" ng-model="message" >
<button ng-click="callNotify(message);">NOTIFY</button>
<p>(you have to click 3 times to see an alert)</p>
</div>
« Previous | 1 | 2 | 3 | Next »


copyright © 2014 - all rights riserved by javatechnologycenter.com