Skip to content

Commit 14c360b

Browse files
committed
Fixed Angular build
1 parent b9196bb commit 14c360b

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

codigofonte/ionicv4/soujavaVagas/angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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",

codigofonte/ionicv4/soujavaVagas/src/app/service/vaga.service.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
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
})
1011
export class VagaService {
1112
constructor(private http: HttpClient) {}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
export 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
};

codigofonte/ionicv4/soujavaVagas/src/environments/environment.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
// The list of file replacements can be found in `angular.json`.
44

55
export 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';

0 commit comments

Comments
 (0)