Skip to content

Instantly share code, notes, and snippets.

Created January 15, 2018 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a1047971d747acacb545fb81c65c773f to your computer and use it in GitHub Desktop.
Save anonymous/a1047971d747acacb545fb81c65c773f to your computer and use it in GitHub Desktop.
import {Component, Input} from '@angular/core';
@Component({
selector: 'app-cursosdesarrolloweb',
template: `
<div class="cursosdesarrolloweb-add">
<h3>Cursosdesarrolloweb</h3>
<h4>{{ data.name }}</h4>
<p>Precio: {{ data.price }}</p>
<p>{{ data.info }}</p>
</div>
`,
styles: [`
.cursosdesarrolloweb-add {
border: 1px solid gray;
padding: 5px;
padding-bottom: 20px;
padding-left: 20px;
border-radius: 10px;
background-color: goldenrod;
color: black;
}
`]
})
export class CursosdesarrollowebComponent {
@Input() data: any;
constructor() { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment