Embedding <angular/> in existing pages is very easy, just add the appropriate <script/> tag. To make this even easier and to add few extras we have made a WordPress <angular/> plug-in for your enjoyment.
Basics
As expected you can now embed <angular/> into your blog like this:
<div>
Enter name: <input name="name" value="World."/><br/>
Hello {{name}}!
</div>
Which will render like this:
Enter name:
Hello {{name}}!
Hello {{name}}!
Advanced
But we have added something extra! If you want to share your code with the world you can do so by adding class="angular" attribute to your code.
<div class="angular">
Enter name: <input name="name" value="World."/><br/>
Hello {{name}}!
</div>
Which will render like this:
Enter name:
Hello {{name}}!
Hello {{name}}!
Enter name:
Hello {{name}}!
Hello {{name}}!
<div class="angular">Enter name:<br />
<input name="name" value="World." /> <br/><br />
Hello {{name}}!
</div>Installation
- Download <angular/> WordPress plug-in here.
- Upload the angular directory to the /wp-content/plugins/ directory
- Activate the plug-in through the ‘Plug-ins’ menu in WordPress
- Set your library and database name on the plug-in configuration page
