-
Notifications
You must be signed in to change notification settings - Fork 10
Exercise 1: Add sock layout component #13
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
base: master
Are you sure you want to change the base?
Conversation
| standalone: true, | ||
| imports: [], | ||
| templateUrl: './sock-layout.component.html', | ||
| styleUrl: './sock-layout.component.scss' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty file? 😭
| styleUrl: './sock-layout.component.scss' | ||
| }) | ||
| export class SockLayoutComponent { | ||
| @Input() sockModel! : Sock; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is natuurlijk wat persoonlijke voorkeur en/of hangt af van project tot project maar ik zou niet expliciet Model toevoegen aan een input
| </div> | ||
| </a> | ||
| </div> | ||
| <app-sock-layout [sockModel]="sock"></app-sock-layout> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the Angular way, finegrained components!
itenium-socks/src/app/app.config.ts
Outdated
| provideZoneChangeDetection({ eventCoalescing: true }), | ||
| provideRouter(routes), | ||
| provideHttpClient(withFetch()), | ||
| {provide: DEFAULT_CURRENCY_CODE, useValue: 'EUR' } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Om het dan ook op z'n "Belgisch" te tonen, ook:
import { registerLocaleData } from '@angular/common';
import localeNlBe from '@angular/common/locales/nl-BE';
registerLocaleData(localeNlBe, 'nl-BE');
En:
{ provide: LOCALE_ID, useValue: 'nl-BE' }
Exercise 1: Add sock layout component