connect-admin/app/app.component.ts

38 lines
726 B
TypeScript

/**
* Created by stefania on 3/21/16.
*/
import { Component } from '@angular/core';
import {Properties} from './utils/properties';
@Component({
selector: 'metadata-registry-service',
templateUrl: './app.component.html',
})
export class AppComponent {
title = 'Metadata Registry Service';
isClient:boolean = false;
userMenuItems = [
{title: "My profile",
url:"",
route:"",
needsAuthorization:false}
];
menuItems = [];
loginUrl = Properties.getLoginURL();
logOutUrl = Properties.getLogoutURL();
constructor( ) {}
ngOnInit() {
if (typeof document !== 'undefined') {
try{
this.isClient = true;
}catch (e) {
}
}
}
}