angularjs on davidchua https://dchua.com/tags/angularjs/ Recent content in angularjs on davidchua Hugo -- gohugo.io en-us Sun, 16 Nov 2014 00:00:00 +0000 Fix AngularJS from loading twice error on Rails 4 https://dchua.com/posts/2014-11-16-fix-angularjs-from-loading-twice-error-on-rails-4/ Sun, 16 Nov 2014 00:00:00 +0000 https://dchua.com/posts/2014-11-16-fix-angularjs-from-loading-twice-error-on-rails-4/ If you’re running a Rails 4.x app with AngularJS, and you’re getting increasingly frustrated with receiving “AngularJS loaded twice” errors and you can’t seem to figure out what went wrong, perhaps you might want to make sure you do two things first: First, remove Turbolinks Gem Remove require ‘turbolinks’ from your application.js It is not apparent at first but turbolinks inject its own form of javascript into your views and when run, it will actually overwrite your normal angular behavior.