I have been attempting to implement Google Prettify in my AngularJS project. It seems to be functioning correctly on the main page, but once I navigate to another route using Angular (after ng-view), it stops working properly. You can check out the plunker example here:
http://plnkr.co/edit/H0JJMYiFlwxlKQXOJgP5?p=preview
Just so you know, this is the pre tag I am using:
<pre class="prettyprint lang-cpp">
struct DLLNode {
int data;
struct DLLNode *next;
struct DLLNode 'prey;
};
</pre>
For some reason, after the ng-view is triggered, Google Prettify fails to work as expected. However, it functions correctly before that.