diff --git a/itenium-socks/src/app/sock-card/sock-card.component.html b/itenium-socks/src/app/sock-card/sock-card.component.html new file mode 100644 index 0000000..51c5908 --- /dev/null +++ b/itenium-socks/src/app/sock-card/sock-card.component.html @@ -0,0 +1,14 @@ +
+ +
+ +
+
+
{{ sock.name }}
+
{{ sock.price }}
+
+
+ +
+
+
diff --git a/itenium-socks/src/app/sock-card/sock-card.component.ts b/itenium-socks/src/app/sock-card/sock-card.component.ts new file mode 100644 index 0000000..7b79ebf --- /dev/null +++ b/itenium-socks/src/app/sock-card/sock-card.component.ts @@ -0,0 +1,16 @@ +import {Component, Input} from '@angular/core'; +import { Sock } from '../socks/sock.model'; // adjust the import path to your Sock model +import {RouterLink} from '@angular/router'; // new import + +@Component({ + selector: 'app-sock-card', + standalone: true, + imports: [ + RouterLink + ], + templateUrl: './sock-card.component.html', + styleUrl: './sock-card.component.scss' +}) +export class SockCardComponent { + @Input() sock!: Sock; +} diff --git a/itenium-socks/src/app/socks/shop.component.html b/itenium-socks/src/app/socks/shop.component.html index a0139e2..aef0839 100644 --- a/itenium-socks/src/app/socks/shop.component.html +++ b/itenium-socks/src/app/socks/shop.component.html @@ -5,22 +5,9 @@

Our Socks

-
-
- +
+
+
diff --git a/itenium-socks/src/app/socks/sock.component.html b/itenium-socks/src/app/socks/sock.component.html index b40f9d2..3b638c0 100644 --- a/itenium-socks/src/app/socks/sock.component.html +++ b/itenium-socks/src/app/socks/sock.component.html @@ -17,18 +17,7 @@
-
-
- -
-
-
{{ sock.name }}
-
{{ sock.price }}
-
-
- -
-
+

{{ sock.name }}