Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING: Tried to load angular more than once. #1

Open
mcebular opened this issue Apr 4, 2018 · 0 comments
Open

WARNING: Tried to load angular more than once. #1

mcebular opened this issue Apr 4, 2018 · 0 comments
Labels
PSA This might be important

Comments

@mcebular
Copy link
Collaborator

mcebular commented Apr 4, 2018

Če bo imel kdo težave da mu browser konzola javlja WARNING: Tried to load angular more than once. pol je verjetno napaka nekje pri klicanju enga fajla (npr. napaka pri kakem templateUrl-ju v direktivi ali kaj podobnega).
Problem je namreč če v templateUrl napišeš neveljaven naslov ti trenutna konfiguracija expressa vrne kar index.html (začetno stran) še enkrat, kjer se ponovno naloži angular in vsi kontrolerji in vse...

Ni nujno ampak pomojem se da nekak rešit da če requestaš neveljaven .html file da express vrne 404, ne pa indeksa (to bi biu ez fix če ne bi express routeanje prenesu na angular 😀 ).

@mcebular mcebular added the PSA This might be important label Apr 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PSA This might be important
Projects
None yet
Development

No branches or pull requests

1 participant