Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
heroes.tsx with hero object
import { Component } from '@stencil/core';
import { Hero } from '../../models/hero';
tag: 'app-heroes',
styleUrl: 'heroes.css'
export class Heroes {
private hero:Hero = {
id: 1,
name: 'Windstorm'
render() {
return (
<h2>{ } Details</h2>
<div><span>id: </span>{}</div>
<div><span>name: </span>{}</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment