javascript - serving static content in code structure generated by yeoman for angular fullstack -
i following code structure generated yeoman angular fullstack.
i want include script called core.js
in file called app.html
.
<script src="core.js"></script>
- i not see express.static anywhere in serving static files.
- i tried using did not help.
it can not locate , gives 404.
how around ?
it had happened before around using express.static , serving files location pointed it.
it did not time though.
update:
i have app.html in folder called music. in same folder, have sub folder called js have placed core.js file included in app.html. tried access using absolute relative path did not , still gives 404.
in angular, scripts go in relevant subfolder of /scripts. either in /controllers, /services/, /directives, etc. reference them in html such:
<script src="scripts/controllers/core.js"></script>
as express.static, express nodejs wrapper http. service create lives on node server remotely. express.static allows node server deliver static content files file set @ remote server. not go in angular application.
Comments
Post a Comment