Revize 4ccb6b62
Přidáno uživatelem Pavel Fidransky před asi 5 roky(ů)
webapp/src/app/login/login.component.ts | ||
---|---|---|
1 | 1 |
import {Component, OnInit} from '@angular/core'; |
2 |
import { Config } from '../services/util/config.service'; |
|
2 | 3 | |
3 | 4 |
@Component({ |
4 | 5 |
selector: 'app-page-not-found', |
... | ... | |
6 | 7 |
styleUrls: ['./login.component.sass'] |
7 | 8 |
}) |
8 | 9 |
export class LoginComponent implements OnInit { |
10 |
loginUrl: string; |
|
9 | 11 | |
10 |
constructor() { |
|
12 |
constructor(private config: Config) { |
|
13 |
this.loginUrl = config.loginUrl; |
|
11 | 14 |
} |
12 | 15 | |
13 | 16 |
ngOnInit() { |
Také k dispozici: Unified diff
re #33: load frontend app configuration from config.json file