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

support import with systemjs/plugin-text #3

Open
sebasgavi opened this issue Mar 12, 2016 · 4 comments
Open

support import with systemjs/plugin-text #3

sebasgavi opened this issue Mar 12, 2016 · 4 comments

Comments

@sebasgavi
Copy link

Hi

tried to use your extension when importing as text with the text plugin from systemjs, didn't work

import templateText from './my-template.html!text';

@Component({
  selector: 'my-component',
  template: templateText
})

I solved it with a quick replace potential_fname.replace(/!\w*/,"")
it just removes that !text at the end of the name so it can find it in the files

thanks for the extension! really helpful

@abierbaum
Copy link
Owner

@vagyriag Could you submit a pull with the change. Sounds like a great improvement.

@sebasgavi
Copy link
Author

done

@abierbaum
Copy link
Owner

I didn't see a pull request for this one. Did you submit it?

@abierbaum
Copy link
Owner

@vagyriag Just checking again. Did you submit a pull for this?

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

No branches or pull requests

2 participants