Created
January 28, 2018 20:36
-
-
Save NickBranstein/5e9dd0e87661f5fa4bc70a5f950c6d63 to your computer and use it in GitHub Desktop.
Reusable Card Component with NativeScript and Angular
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component, Input } from "@angular/core"; | |
| @Component({ | |
| selector: "card", | |
| moduleId: module.id, | |
| templateUrl: "./card.component.html", | |
| styleUrls: ["./card.component.css"] | |
| }) | |
| export class CardComponent { | |
| @Input() title: string; | |
| @Input() subtitle: string; | |
| constructor() { | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment