- #{{detail.id}} {{detail.name}}
+
+
-
- - {{ability.ability.name}}
-
+
+ #{{detail.id}} {{detail.name}}
+
+
+
{{type.type.name}}
+
+
+
+
+
+ - {{ability.ability.name}}
+
+
+
\ No newline at end of file
diff --git a/src/app/pokedetail/pokedetail.component.ts b/src/app/pokedetail/pokedetail.component.ts
index d60367d..bbd0afa 100644
--- a/src/app/pokedetail/pokedetail.component.ts
+++ b/src/app/pokedetail/pokedetail.component.ts
@@ -1,13 +1,24 @@
-import { Component, Input} from '@angular/core';
+import { Component, Input, OnInit} from '@angular/core';
import { PokeDetail } from '../pokemon';
+import { PokeShareInfoService } from '../poke-share-info.service';
+import { PokeAPIServiceService } from '../poke-apiservice.service';
@Component({
selector: 'app-pokedetail',
templateUrl: './pokedetail.component.html',
- styleUrl: './pokedetail.component.css'
+ styleUrl: './pokedetail.component.css',
+ providers: [PokeAPIServiceService]
})
-export class PokedetailComponent {
+export class PokedetailComponent implements OnInit {
+
+
@Input('detail')
detail: PokeDetail;
+
+ constructor(private PokeShareInfoService: PokeShareInfoService){
+ this.PokeShareInfoService.getObservable().subscribe(e=> console.log('e ' + e))
+ }
+ ngOnInit(): void {
+ }
}
diff --git a/src/app/pokemon.ts b/src/app/pokemon.ts
index 1fdfdf6..e00b14e 100644
--- a/src/app/pokemon.ts
+++ b/src/app/pokemon.ts
@@ -192,6 +192,8 @@ export interface Type {
}
+
+
export class Pokemon {
diff --git a/src/styles.css b/src/styles.css
index 320df02..e3fedf0 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -14,13 +14,30 @@ div.filter_pokedex{
div.pokemon{
display: inline-block;
align-items: center;
+ margin: 15px
}
div.pokemonTitle{
display: inline-block;
font-size: 30px;
+ vertical-align: top;
}
div.pokemonDetail{
display: inline-block;
-}
\ No newline at end of file
+ vertical-align: top;
+}
+
+div.pokemonSprite{
+ image-rendering: pixelated;
+ display: inline-block;
+ vertical-align: top;
+}
+
+img{
+ image-rendering: pixelated;
+}
+
+table.sprites{
+ border-collapse: collapse;
+}