File

src/app/components/home/home/home.component.ts

Metadata

changeDetection ChangeDetectionStrategy.OnPush
selector roleame-webapp-home
styleUrls home.component.scss
templateUrl home.component.html

Constructor

constructor(amplifyService: AmplifyService)

Properties

currentUser
currentUser: String
logo
logo: any
routeAnimationsElements
routeAnimationsElements: string
Default value: ROUTE_ANIMATIONS_ELEMENTS
import { AmplifyService } from 'aws-amplify-angular';
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';

import { ROUTE_ANIMATIONS_ELEMENTS } from '../../../core/core.module';

@Component({
  selector: 'roleame-webapp-home',
  templateUrl: './home.component.html',
  styleUrls: ['./home.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class HomeComponent implements OnInit {

  routeAnimationsElements = ROUTE_ANIMATIONS_ELEMENTS;

  logo = require('assets/logo.png');

  currentUser: String;

  constructor(private amplifyService: AmplifyService) {
    this.amplifyService.auth().currentAuthenticatedUser().then(user => {
      this.currentUser = user.username;
    }).catch(err => {});
  }

  ngOnInit() {}
}

results matching ""

    No results matching ""