Skip to content

Instantly share code, notes, and snippets.

@NickBranstein
Created January 28, 2018 20:36
Show Gist options
  • Select an option

  • Save NickBranstein/5e9dd0e87661f5fa4bc70a5f950c6d63 to your computer and use it in GitHub Desktop.

Select an option

Save NickBranstein/5e9dd0e87661f5fa4bc70a5f950c6d63 to your computer and use it in GitHub Desktop.
Reusable Card Component with NativeScript and Angular
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