.

Hello World of AngularJS

This is the simplest test to see if AngularJS is working correctly.

<script src="http://code.angularjs.org/1.0.5/angular.js"></script>

<div ng-app>
    Name: <input type=text ng-model="name">
    <br>
    Current user's name: {{name}}
</div>

and the following is a script test call:

<script language="javascript">
    if (typeof angular == 'undefined') {
        alert('AngularJS not available');
    }
</script>

What's your thoughts on this?

*

Protected by WP Anti Spam