Angular directive update template before execute controller function

Some time you want to response to user before you execute heavy task. There is one way is to use broadcast and listener. Today I use another way. I use the other variable for the directive template and other for the logic in controller. I update the `flagSrc` then use timeout to call controller function. So the `flagSrc` will be update when the scope apply and the controller function will be called in another thread.

Overriding CSS Location for Playback in Inspectlet

By default, Inspectlet caches your CSS files and loads those during session playback and heatmap rendering to preserve your site’s styling exactly as it was at the time it was experienced by your visitors. However, if you’ve disabled our CSS bot from caching your CSS, Inspectlet will load your CSS files directly from your site. If during session playback in Inspectlet you’d like to load your CSS from a different URL, you can do so by adding the inspectlet-href attribute to your CSS LINK tag like so:

Initialise AngularJS application with server data

Sometime you need to init the data from server before you want the app to be loaded, if you use ng-app the Angular application always load before you can make ajax call to retrieve data. The solution for that is to remove the ng-app and bootstrap the Angular JS application programmatically after we got the data from server. But you need to handle the case the API or server is down and the data is never returned then the app will not be bootstrapped.

Git delete a commit in history

git rebase –onto 33fee37^ 33fee37 HEAD git checkout -b KSEAPP-61 git checkout master git merge KSEAPP-61 –no-commit

Downgrade Firefox version from 47+ to 46

I am working with Selenium and Firefox browser but it keeps saying And the problem is that Selenium version 2.53 is not working with Firefox version 47 as Issue 2110So I try to downgrade Firefox to version 46 on my Mac Then change to Reinstall [email protected]