Skip to content

Conversation

@bossepierre
Copy link

Exercise 1: Add sock layout component

standalone: true,
imports: [],
templateUrl: './sock-layout.component.html',
styleUrl: './sock-layout.component.scss'
Copy link
Member

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;
Copy link
Member

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>
Copy link
Member

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!

provideZoneChangeDetection({ eventCoalescing: true }),
provideRouter(routes),
provideHttpClient(withFetch()),
{provide: DEFAULT_CURRENCY_CODE, useValue: 'EUR' }
Copy link
Member

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' }

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

Successfully merging this pull request may close these issues.

2 participants