GithubHelp home page GithubHelp logo

Comments (8)

antonybudianto avatar antonybudianto commented on July 19, 2024

For now you can try https://angular.io/docs/ts/latest/cookbook/component-relative-paths.html

from angular-starter.

manish5377 avatar manish5377 commented on July 19, 2024

We did try as suggested by @antonybudianto .

Issue we encountered for development build was that .html files were not being copied to /src/tmp folder. Once we did that it worked well for dev.

However for production build, html files are copied to /build folder however all xhr request for html templates were pointing to root. e.g. localhost:3001/abc.html

We were expecting it to be something like localhost:3001/some-comonent/abc.html (provided abc.html is template for "some-component" within "some-component" folder.

Thanks for any help you can provide.

from angular-starter.

antonybudianto7 avatar antonybudianto7 commented on July 19, 2024

I never tried that myself, maybe you can post to stackoverflow for more assistance, Sorry cannot help much

from angular-starter.

antonybudianto7 avatar antonybudianto7 commented on July 19, 2024

By the way, Angular 2 already introduces Compiler CLI which will compile the component and the template, which we don't need to care relative/absolute paths anymore, I'll try investigating that
Reference https://www.npmjs.com/package/angular2-template-compiler

from angular-starter.

antonybudianto avatar antonybudianto commented on July 19, 2024

angular/angular#6053 (comment)

from angular-starter.

manish5377 avatar manish5377 commented on July 19, 2024

Thanks @antonybudianto . That was very useful.

from angular-starter.

manish5377 avatar manish5377 commented on July 19, 2024

One more question.
This starter is using "SystemJS" as module loader. Is it in development mode OR for Production deployment as well?

from angular-starter.

antonybudianto avatar antonybudianto commented on July 19, 2024

It's for module loader, for bundler in production you can use webpack / SystemJS Builder (default)

from angular-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.