Angular and WordPress Integration

I;m doing a simple integration of angular inside wordpress, I enqueue the angular script:

function angular()
wp_enqueue_script('angular', get_template_directory_uri().'/assets/js/angular.min.js', array(), null, false);
add_action('wp_enqueue_scripts', 'angular');

And I paste this code in the page.php of the theme (Twenty Seventeen theme which is the one I’m using to test) the following code just to test :

<input type="text" ng-model="name">
<p>Hello, {{name}}</p>

Ant it returns

Hello, {{name}}

The angular doesn’t start

Read more here: Angular and WordPress Integration

Leave a Reply

Your email address will not be published. Required fields are marked *