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

Enable resourcesInlining once we have Angular 6 for inlining template in components #376

Closed
SuperITMan opened this issue May 16, 2018 · 0 comments · Fixed by #377
Closed

Comments

@SuperITMan
Copy link
Member

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[X] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/NationalBankBelgium/stark/blob/master/CONTRIBUTING.md#got-a-question-or-problem

Current behavior

Html template are not inlined into ui components.
We have to write the html code directly inside the component.
@component({
template: ´

Hello World
´
})

What is the motivation / use case for changing the behavior?

We should write the html inside the html template and mention it in the component declaration.
@component({
templateUrl: "./my-template.html"
})

We can do that thanks to enableResourceInlining AOT option.
See: https://github.com/angular/angular/blob/b5be18f4059dc09ee9a3eb22ebd0b1485262e8fa/packages/compiler-cli/src/transformers/api.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants