File tree Expand file tree Collapse file tree 4 files changed +14
-12
lines changed
codigofonte/ionicv4/soujavaVagas Expand file tree Collapse file tree 4 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 1414 "build" : {
1515 "builder" : " @angular-devkit/build-angular:browser" ,
1616 "options" : {
17- "outputPath" : " www " ,
17+ "outputPath" : " dist " ,
1818 "index" : " src/index.html" ,
1919 "main" : " src/main.ts" ,
2020 "polyfills" : " src/polyfills.ts" ,
Original file line number Diff line number Diff line change 1- import { Vaga } from ' ./../model/vaga.model' ;
2- import { HttpClient } from ' @angular/common/http' ;
3- import { Injectable } from ' @angular/core' ;
4- import { Observable } from ' rxjs' ;
5- import { BASE_URL_REPOS } from ' src/environments/environment' ;
1+ import { Vaga } from " ./../model/vaga.model" ;
2+ import { HttpClient } from " @angular/common/http" ;
3+ import { Injectable } from " @angular/core" ;
4+ import { Observable } from " rxjs" ;
5+ import { environment } from " src/environments/environment" ;
66
7+ const BASE_URL_REPOS = environment . BASE_URL_REPOS ;
78@Injectable ( {
8- providedIn : ' root'
9+ providedIn : " root" ,
910} )
1011export class VagaService {
1112 constructor ( private http : HttpClient ) { }
Original file line number Diff line number Diff line change 11export const environment = {
2- production : true
2+ production : true ,
3+ BASE_URL_REPOS : "https://api.github.com/repos" ,
4+ BASE_URL_ROOT : "https://api.github.com" ,
35} ;
Original file line number Diff line number Diff line change 33// The list of file replacements can be found in `angular.json`.
44
55export const environment = {
6- production : false
6+ production : false ,
7+ BASE_URL_REPOS : "https://api.github.com/repos" ,
8+ BASE_URL_ROOT : "https://api.github.com" ,
79} ;
810
911/*
@@ -14,6 +16,3 @@ export const environment = {
1416 * on performance if an error is thrown.
1517 */
1618// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
17-
18- export const BASE_URL_REPOS = 'https://api.github.com/repos' ;
19- export const BASE_URL_ROOT = 'https://api.github.com' ;
You can’t perform that action at this time.
0 commit comments