1
|
import { Component, Directive, ElementRef, Renderer, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
|
2
|
import { ConfigurationService } from './utils/configuration/configuration.service';
|
3
|
import {Observable} from 'rxjs/Observable';
|
4
|
|
5
|
@Component({
|
6
|
//changeDetection: ChangeDetectionStrategy.Default,
|
7
|
//encapsulation: ViewEncapsulation.Emulated,
|
8
|
selector: 'app-root',
|
9
|
styles: [`
|
10
|
`],
|
11
|
template: `
|
12
|
<h1>Openaire Lib Component</h1>
|
13
|
<!--navbar></navbar-->
|
14
|
|
15
|
|
16
|
<!--div id="tm-main" class=" uk-section uk-margin-large-top tm-middle custom-main-content" >
|
17
|
<div uk-grid uk-grid>
|
18
|
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first "-->
|
19
|
<div class="custom-main-content" >
|
20
|
<main>
|
21
|
<router-outlet></router-outlet>
|
22
|
|
23
|
</main>
|
24
|
</div>
|
25
|
<!--/div>
|
26
|
|
27
|
|
28
|
</div>
|
29
|
</div-->
|
30
|
<!--feedback *ngIf= "isClient"></feedback>
|
31
|
<cookie-law *ngIf= "isClient" position="bottom">
|
32
|
OpenAIRE uses cookies in order to function properly.<br>
|
33
|
Cookies are small pieces of data that websites store in your browser to allow us to give you the best browsing experience possible.
|
34
|
By using the OpenAIRE portal you accept our use of cookies. <a href="//ec.europa.eu/ipg/basics/legal/cookies/index_en.htm" target="_blank"> Read more <span class="uk-icon">
|
35
|
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="chevron-right" ratio="1"><polyline fill="none" stroke="#000" stroke-width="1.03" points="7 4 13 10 7 16"></polyline></svg>
|
36
|
</span></a>
|
37
|
</cookie-law>
|
38
|
<bottom *ngIf= "isClient"></bottom-->
|
39
|
|
40
|
`
|
41
|
|
42
|
})
|
43
|
export class AppComponent {
|
44
|
isClient:boolean = false;
|
45
|
constructor(private config: ConfigurationService) {}
|
46
|
|
47
|
ngOnInit() {
|
48
|
|
49
|
if (typeof document !== 'undefined') {
|
50
|
try{
|
51
|
this.isClient = true;
|
52
|
}catch (e) {
|
53
|
}
|
54
|
}
|
55
|
}
|
56
|
}
|