Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Component, OnInit } from '@angular/core';
  2. import { Hero } from '../hero';
  3.  
  4. @Component({
  5.   selector: 'app-heroes',
  6.   templateUrl: './heroes.component.html',
  7.   styleUrls: ['./heroes.component.css']
  8. })
  9. export class HeroesComponent implements OnInit {
  10.   hero: Hero = {
  11.     id: 1,
  12.     name: 'Windstorm'
  13.   };
  14.  
  15.   constructor() { }
  16.  
  17.   ngOnInit() {
  18.   }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement