I am using ng-bind-html for binding data that I get from database.
ng-bind-html
app.controller(\'customersC
as you know the statements execute asynchronously, if there is no timeout $('pre code') will be empty as the DOM is still not rendered. use $timeout instead of setTimeout for the same.