P
P
Peter2016-01-19 16:41:59
Angular
Peter, 2016-01-19 16:41:59

How to make route work in agularjs after build with browserify?

After building through browserify, accessing a specific address stops working.
For example, if you directly access localhost:8000/view1 , then nothing is displayed and an error is generated in the console "Uncaught ReferenceError: require is not defined".
But if you address localhost:8000 , or follow links (for example , localhost:8000/view1) , then routing works correctly.
The code is here https://github.com/volkovpv/angular-browserify-route

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question