I am trying to make an app in ruby and angular. While I am trying to create my controller and defining the new module i get this error in console : Uncaught ReferenceError: require is not defined
I am using Cloud9 online IDE and when I define the module
var app = angular.module('angularExample');
It says that angular is not defined. Angular is here:
myapp/app/assets/javascripts/angular
While the controller is here:
myapp/app/assets/javascripts/invoices/InvoiceCtrl.js
Application.js content:
//= require angular
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require_tree .
What am I doing wrong?