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

templateUrl issue #4

Open
zubaya opened this issue Mar 8, 2017 · 5 comments
Open

templateUrl issue #4

zubaya opened this issue Mar 8, 2017 · 5 comments

Comments

@zubaya
Copy link

zubaya commented Mar 8, 2017

The example seed.component does not seem to work if a templateUrl is used in the decorator, the html markup is not included in the output. Is there something required to enable this.

@davguij davguij self-assigned this Mar 8, 2017
@davguij davguij added the bug label Mar 8, 2017
@davguij
Copy link
Owner

davguij commented Mar 8, 2017

Thanks for reporting. I'll take a look at it when I've got a moment.

@akserg
Copy link

akserg commented Mar 13, 2017

Hi @davguij

Did you have a chance to look at this issue?

@davguij
Copy link
Owner

davguij commented Mar 13, 2017

Not really, lot of work :(

@davguij
Copy link
Owner

davguij commented Mar 17, 2017

Soooo... I've given some time to this but haven't had any luck. ngc compiles the HTML to factories but I can't figure out how to include those factories in the bundle and updating the references in the component files.
Any help would be appreciated.

@BaamAadmi
Copy link

Hi,

My File structure is
search
----search.component.html
----search.component.ts
----index.ts

@Component({
    moduleId: module.id,
    templateUrl: 'search.component.html'
})

moduleId: module.id, This might be an important line. It helps in using relative paths in independent components.
I am using tsc for compiling rather than ngc used by @davguij , And "module": "commonjs" in (tsconfig.json)
Do try this, and see if it works.

Regards,
Sudeep

@davguij davguij removed their assignment Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants