Repository navigation
docs(router): Move ActivatedRoute example to mini-app - #29755
frederikprijck wants to merge 1 commit into
Conversation
|
You can preview 53f7e0c at https://pr29755-53f7e0c.ngbuilds.io/. |
|
You can preview e9c5a67 at https://pr29755-e9c5a67.ngbuilds.io/. |
|
You can preview 280e714 at https://pr29755-280e714.ngbuilds.io/. |
|
You can preview 02d38e5 at https://pr29755-02d38e5.ngbuilds.io/. |
|
You can preview cca9d96 at https://pr29755-cca9d96.ngbuilds.io/. |
|
You can preview 768b4bb at https://pr29755-768b4bb.ngbuilds.io/. |
gkalpak
left a comment
There was a problem hiding this comment.
🎉 Thx ❤️
The CI failure is legit. You need to apply this change; i.e. change packages/tsconfig.json like this:
- "examples/*/main.ts",
+ "examples/**/main.ts",There was a problem hiding this comment.
If you are not using ts_library and protractor_web_test_suite here (👀), you don't need to import them 😁
There was a problem hiding this comment.
Nit: Since the component metadat are not relevant for the example (and it seems confusing to have an ActivatedRouteComponent with an example-app selector), consider either hiding them away or create an additional AppComponent:
Option 1:
@Component({
// #enddocregion activated-route
selector: 'example-app',
template: '...',
// #docregion activated-route
})Option 2:
@Component({selector: 'activated-route', template: '...'})
export class ActivatedRouteComponent { ... }
// #enddocregion activated-route
@Component({selector: 'example-app', template: '...'})
export class ExampleAppComponent { ... }There was a problem hiding this comment.
Nit: A different name would seem more "realistic" 😛 E.g. app.component.ts or activated-route.component.ts.
|
You can preview 8518a16 at https://pr29755-8518a16.ngbuilds.io/. |
|
@gkalpak I've updated the PR to resolve your comments! |
|
You can preview f2f18d4 at https://pr29755-f2f18d4.ngbuilds.io/. |
|
You can preview 1533653 at https://pr29755-1533653.ngbuilds.io/. |
|
You can preview 580f7a4 at https://pr29755-580f7a4.ngbuilds.io/. |
|
You can preview a0a3ca7 at https://pr29755-a0a3ca7.ngbuilds.io/. |
gkalpak
left a comment
There was a problem hiding this comment.
One minor comments. Other than that LGTM.
Thx for working on this ❤️
There was a problem hiding this comment.
Can you please ensure that this comment does not end up in the code snippet?
|
You can preview c046dc5 at https://pr29755-c046dc5.ngbuilds.io/. |
|
@gkalpak shouldn't the Bazel config go into the |
|
Not all example are set up equally 😛 In some case it makes a difference (e.g. the upgrade examples use different bootstrapping, so they can all be part of a single app), but in this case it probably doesn't. I just thought that having a project in the sub-directory avoid unnecessary boilerplate. It might make sense to move to the "one main app - multiple sub-examples as routes" if we get more In any case, I don't feel strongly about this. Leaving it up to you. (You know more than me about running examples with bazel anyway 😉) |
|
Im not sure if i should still make changes of not. I think both arguments make sense... |
|
CI is red and it doesn't look like a flake. (Might need another rebase on master.) |
|
Presubmit (note this will have the build_test failing due to a missing g3 patch for another PR still pending in the sync) |
|
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. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
As requested in #29752, this PR moves the example of that PR to a mini-app in such a way that the example is guaranteed to be compilable.
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information