I’m trying to implement a part of my Rails app with AngularJS 1.2.10.
working with Rails 4 which comes with turbolinks by default. The problem
that when turbolinks fetch the page containing my Angular App, I’ve got
error saying that I have no angular module :
Failed to instantiate module usersApp due to:
On Google, multiple persons give a solution which seems to work with
AngularJS 1.0.8 :
$(document).on ‘ready page:load’, ->
It assumes that you removed the ng-app attribute on your DOM tag on
But, with AngularJS 1.2.10, I sometimes have this error message : Error:
[ng:btstrpd] which means that the Angular for my App is already
I tried to disable turbolinks on the
giving access to the angular App with ‘data-no-turbolink’ but if I empty
Browser cache, I’ve got a white page, with no error…
I don’t see any other idea, except remove turbolinks from my Gemfile,
don’t like this solution.
Could you please help me ?
Thank you by advance