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.
57
57
58
58
Runs the app in the development mode.
59
59
60
- Open http://localhost:4200 to view it in the browser.
60
+ Open http://localhost:3000 to view it in the browser.
61
61
62
62
#### 4. Run ` npm build `
63
63
Original file line number Diff line number Diff line change 1
1
import { Injectable } from '@angular/core' ;
2
+ import { environment } from '../environments/environment' ;
2
3
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' : '' ;
6
6
const baseURLApi = `${ hostApi } ${ portApi ? `:${ portApi } ` : `` } ` ;
7
7
8
8
@Injectable ( {
9
- providedIn : 'root' ,
9
+ providedIn : 'root'
10
10
} )
11
11
export class AppConfig {
12
12
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 ,
15
16
hostApi,
16
17
portApi,
17
18
baseURLApi,
18
19
auth : {
19
20
email : 'admin@flatlogic.com' ,
20
- password : 'password' ,
21
+ password : 'password'
21
22
} ,
22
23
} ;
23
24
24
- constructor ( ) { }
25
+ constructor ( ) {
26
+ }
25
27
26
28
getConfig ( ) : Object {
27
29
return this . config ;
Original file line number Diff line number Diff line change 1
1
export const environment = {
2
2
production : true ,
3
3
hmr : false ,
4
+ backend : true ,
4
5
} ;
Original file line number Diff line number Diff line change 5
5
export const environment = {
6
6
production : false ,
7
7
hmr : false ,
8
+ backend : true
8
9
} ;
9
10
10
11
/*
Original file line number Diff line number Diff line change 2
2
< html lang ="en ">
3
3
< head >
4
4
< meta charset ="utf-8 " />
5
- < title > Angular- Material- Admin-Full </ title >
5
+ < title > Angular Material Admin</ title >
6
6
< base href ="./ " />
7
7
< meta name ="referrer " content ="no-referrer-when-downgrade " />
8
8
< meta
9
9
name ="description "
10
- content ="Angular- Material-Admin-Full was created by Flatlogic generator. "
10
+ content ="Angular Material Admin "
11
11
/>
12
12
< meta
13
13
name ="keywords "
You can’t perform that action at this time.
0 commit comments