An approach to use jQuery Plugins with AngularJS
http://amitgharat.wordpress.com/2013/02/03/an-approach-to-use-jquery-plugins-with-angularjs/
HTML
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="http://anthonyterrien.com/js/jquery.knob.js"></script>
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
<script src="https://google-code-prettify.googlecode.com/svn/loader/prettify.js"></script>
<div ng-app="Knob" ng-controller="myCtrl">
<!--<input ng-model="text" type="text"/>-->
<pre ng-bind-html-unsafe="text|pretty"></pre>
</div>
JavaScript
var App = angular.module('Knob', []);
App.controller('myCtrl', function($scope) {
setTimeout(function() {
$scope.text = "function apply() { return 'not working..'; }";
$scope.$apply();
}, 0);
});
App.filter('pretty', function(){
return function(text) {
return prettyPrintOne(text);
}
})