ThierryDD
4/16/2018 - 10:34 AM

Album Component - Iteration 2

import { Component, OnInit, Input } from '@angular/core';

import { environment } from '../../environments/environment';
import { IAlbum } from '../models/ialbum';

@Component({
  selector: 'grooviz-album',
  templateUrl: './album.component.html',
  styleUrls: ['./album.component.scss']
})
export class AlbumComponent implements OnInit {

  @Input() album: IAlbum; // 🅰
  current: number; // 🅱
  photosUrl: string = environment.photosUrl; // 🅲

  constructor() { }

  ngOnInit() {
    this.current = 0; // 🅳
  }

}