I launch the browser in my code, it looks like this:
import './app'; //——————————————————————————————————————————————————// // Components //——————————————————————————————————————————————————// import './components/_ntToggleClass';
the application is just
const app = angular.module('app', []);
and the files in components are, well, components. But they use the forementioned app :
app.directive('ntToggleClass', () => { ... }
When I put everything in one file manually, everything worked. But after I used the browser for this, I get
Uncaught ReferenceError: application not defined
When I look at the code, there is var app and a directive.
source share