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> |