Skip to content

Commit

Permalink
updt
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernanda-Farias committed Aug 8, 2024
1 parent b3090ae commit 3e916ac
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "docs",
"baseHref": "/NG-Store-Angular/",
"baseHref": "/NG-Store-Angular-Mod/",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": [
Expand Down
44 changes: 44 additions & 0 deletions docs/assets/dbgames.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"produtos": [
{
"id": 1,
"nome": "Dragon Ball Sparking! Zero",
"pasta": "lancamentos",
"preco": 220,
"desconto": 3,
"foto": "dragon-ball-sparking-zero.jpg"
},
{
"id": 2,
"nome": "Metaphor ReFantazio",
"pasta": "lancamentos",
"preco": 155.87,
"desconto": 39,
"foto": "metaphor-refantazio.jpg"
},
{
"id": 3,
"nome": "Silent Hill 2",
"pasta": "lancamentos",
"preco": 342.81,
"desconto": 13,
"foto": "silent-hill-2.jpg"
},
{
"id": 4,
"nome": "Sonic X Shadow Generation",
"pasta": "lancamentos",
"preco": 223.87,
"desconto": 6,
"foto": "sonic-shadow-generation.jpg"
},
{
"id": 5,
"nome": "God of War Ragnarok",
"pasta": "lancamentos",
"preco": 234,
"desconto": 43,
"foto": "god-of-war-ragnarok.jpg"
}
]
}
2 changes: 1 addition & 1 deletion src/app/produto.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Produto } from './components/models/Produto.model';

export class ProdutoService {

private url: string = "./dbgames.json";
private url: string = "assets/dbgames.json";

constructor(private _httpClient: HttpClient) { }

Expand Down

0 comments on commit 3e916ac

Please sign in to comment.