feat(core): provide support for relative assets for components#5634
feat(core): provide support for relative assets for components#5634matsko wants to merge 1 commit intoangular:masterfrom
Conversation
7691d55 to
806d717
Compare
806d717 to
009295e
Compare
009295e to
416315c
Compare
416315c to
3598c08
Compare
|
Several dart analyzer failures |
There was a problem hiding this comment.
Why package if it's the application root ?
There was a problem hiding this comment.
Application root is too broad. It is the root where modules are loaded from.
So maybe MODULE_ROOT_URL.
There was a problem hiding this comment.
Updated to MODULE_ROOT_URL.
|
Some comments in the PR. I am also -1 on the This is not directly related to this PR |
|
+1 for only having the |
There was a problem hiding this comment.
From what I was struggling with using Dart, it can't stay final because the value is determined within the body of the constructor. The error that shows up is so:
'UrlResolver' has no instance setter '_packagePrefix'.There was a problem hiding this comment.
Please talk to Yegor, this should be doable
70a8f03 to
59ced85
Compare
59ced85 to
d78367e
Compare
d78367e to
124b83c
Compare
|
e2e tests are failing. looks like a legit issue. |
124b83c to
961f26b
Compare
961f26b to
9d1da8d
Compare
9d1da8d to
50fa0e2
Compare
50fa0e2 to
c0ab8b3
Compare
Assets defined for `templateUrl` and `styleUrls` can now be loaded in relative to where the component file is placed so long as the `moduleId` is set within the component annotation. Closes angular#5634
c0ab8b3 to
5399276
Compare
|
Merging PR #5634 on behalf of @alexeagle to branch presubmit-alexeagle-pr-5634. |
Assets defined for `templateUrl` and `styleUrls` can now be loaded in relative to where the component file is placed so long as the `moduleId` is set within the component annotation. Closes angular#5634
|
So happy this landed 👍 Just one question, is |
|
It's necessary for CJS modules. Matias, can you send the PR with doc updates describing how to use this. I
|
|
Does this actually work? I'm trying to get it to work in beta.0 and see no impact from having |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Assets defined for
templateUrlandstyleUrlscan now be loadedin relative to where the component file is placed so long as the
moduleIdis set within the component annotation.