File tree Expand file tree Collapse file tree 5 files changed +15
-11
lines changed Expand file tree Collapse file tree 5 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ in [package.json](package.json) file.
5757
5858Runs the app in the development mode.
5959
60- Open http://localhost:4200 to view it in the browser.
60+ Open http://localhost:3000 to view it in the browser.
6161
6262#### 4. Run ` npm build `
6363
Original file line number Diff line number Diff line change 11import { Injectable } from '@angular/core' ;
2+ import { environment } from '../environments/environment' ;
23
3- const hostApi =
4- process . env . NODE_ENV !== 'development' ? 'http://localhost' : '' ;
5- const portApi = process . env . NODE_ENV !== 'development' ? 8080 : '' ;
4+ const hostApi = process . env . NODE_ENV === 'development' ? 'http://localhost' : 'https://sing-generator-node.herokuapp.com' ;
5+ const portApi = process . env . NODE_ENV === 'development' ? '8080' : '' ;
66const baseURLApi = `${ hostApi } ${ portApi ? `:${ portApi } ` : `` } ` ;
77
88@Injectable ( {
9- providedIn : 'root' ,
9+ providedIn : 'root'
1010} )
1111export class AppConfig {
1212 config = {
13- version : '4.0.0' ,
14- remote : '' ,
13+ version : '1.2.0' ,
14+ remote : 'https://sing-generator-node.herokuapp.com' ,
15+ isBackend : environment . backend ,
1516 hostApi,
1617 portApi,
1718 baseURLApi,
1819 auth : {
1920 email : 'admin@flatlogic.com' ,
20- password : 'password' ,
21+ password : 'password'
2122 } ,
2223 } ;
2324
24- constructor ( ) { }
25+ constructor ( ) {
26+ }
2527
2628 getConfig ( ) : Object {
2729 return this . config ;
Original file line number Diff line number Diff line change 11export const environment = {
22 production : true ,
33 hmr : false ,
4+ backend : true ,
45} ;
Original file line number Diff line number Diff line change 55export const environment = {
66 production : false ,
77 hmr : false ,
8+ backend : true
89} ;
910
1011/*
Original file line number Diff line number Diff line change 22< html lang ="en ">
33 < head >
44 < meta charset ="utf-8 " />
5- < title > Angular- Material- Admin-Full </ title >
5+ < title > Angular Material Admin</ title >
66 < base href ="./ " />
77 < meta name ="referrer " content ="no-referrer-when-downgrade " />
88 < meta
99 name ="description "
10- content ="Angular- Material-Admin-Full was created by Flatlogic generator. "
10+ content ="Angular Material Admin "
1111 />
1212 < meta
1313 name ="keywords "
You can’t perform that action at this time.
0 commit comments