-
Notifications
You must be signed in to change notification settings - Fork 1
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
load templates via systemJS plugin-text #1
Comments
Hi @Hotell I've published a plugins branch to address this use-case To be honest I definitly prefer inline template using ES6 import tpl from './my-component.html!'; |
@Hotell let's me know if the proposed solution looks good to you, and the I close the issue 😉 |
I don't like the html loading via System.config({
// locate the plugin via map configuration
// (alternatively have it in the baseURL)
map: {
text: '/path/to/text-plugin.js'
},
// use meta configuration to reference which modules
// should use the plugin loader
meta: {
'*.html': {
loader: 'text'
}
}
}); then you can just |
also creating "temporary" modules to make TS happy is overkill. I prefer traditional commonJS syntax for this |
Hi @Hotell I totally agree with you that my solution is not clear and the typings hacking is so bad 👎 But I tried to follow your suggestions without success... 😞 Hope that you can try it and point me in the right direction to resolve this problem. |
Hi @Hotell ignore last comment, I think I've found a way to make it work with require as you suggest, |
perfecto! looking forward to it! |
Hi @Hotell I made a refactor (ver 1.2.0) of all the branches of the repo to avoid using Take a look of this solution, and if it LGTY then I'll close this issue. |
using templateUrl for loading templates in ng1 introduces a lot of problems / testing/no guarantees about children template resolution.
It would awesome if you can provide loading templates via systemJS
The text was updated successfully, but these errors were encountered: