Conversation
|
Two questions:
|
|
Thanks for this draft PR @LagaceM !
Yes, and unfortunately I believe it's because the
For a starter template, it would be great to have all the basic tests, usually it means all components. The idea is that when someone builds upon this work, they will require less code to setup the tests. When you're ready, one cool thing to have too is a directory structure to see the files and their descriptions (like in Vue). Thanks again! |
|
Hello, @daine Sorry the delay on completing the starter app, i think we all had a crazy last 6 months. |
starter-apps/angular/angular-template/src/app/pages/about/about.html
Outdated
Show resolved
Hide resolved
starter-apps/angular/angular-template/src/app/pages/home/home.html
Outdated
Show resolved
Hide resolved
starter-apps/angular/angular-template/src/app/pages/about/topic/topic.html
Outdated
Show resolved
Hide resolved
starter-apps/angular/angular-template/src/app/pages/report-a-bug/report-a-bug.ts
Outdated
Show resolved
Hide resolved
| polished user experience with minimal setup. | ||
| </gcds-text> | ||
| <gcds-link | ||
| routerLink="about/topic" |
There was a problem hiding this comment.
I noticed we're not using a router, any reason why? Typically a raw relative string path isn't the best idea, so ideally we'd either put a router link here (with routing setup), or at the minimum, use an absolute path like /about/topic
There was a problem hiding this comment.
The app is using a router. It's inside the root / app component.
<!-- app.html -->
<app-header />
<gcds-container size="xl" tag="main" [centered]="true" [mainContainer]="true">
<router-outlet></router-outlet> // The router outlet is here
</gcds-container>
<gcds-footer display="full"></gcds-footer>I can use absolute path if you prefer. I'm just use to organize apps in "features" and using relative path in feature allow you to move it around and not having to modify all the path.
| <gcds-input | ||
| formControlName="version" | ||
| name="version" | ||
| inputId="version" |
There was a problem hiding this comment.
I'm not sure if there's a separate angular specific property called inputId, but to set the ID in the gcds-input component for angular it's:
| inputId="version" | |
| input-id="version" |
| <gcds-textarea | ||
| formControlName="currentBehavior" | ||
| name="currentBehavior" | ||
| inputId="currentBehavior" |
There was a problem hiding this comment.
And for textarea, it's this:
| inputId="currentBehavior" | |
| textarea-id="currentBehavior" |

Summary | Résumé
This PR add a starter template for Angular. The template include the same pages as the vue one. The Top Nav doesnt show the currently active page (
routerLinkActivedoesnt work on gcds-links).Screenshot:

Test instructions | Instructions pour tester la modification
Go to
starter-apps/angular/angular-templateand runnpm run startto start the dev server. Then go tohttp://localhost:4200