0.0.3 • Published 8 years ago

ng2-card v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

ng2-card

Card view component for angular2. This library is a pre release.

example

Installation

$ npm install --save ng2-card

Usage

import {Component} from "@angular/core";
import {Card} from "ng2-card";

@Component({
    selector: "my-app",
    template: `
    <card title="Portfolio"
          subtitle="This is my portfolio website."
          linkUrl="https://github.com/c-bata/c-bata.github.io"
          imageUrl="/img/works/portfolio.png"
          tags="HTML5,Sass,Compass,Angular2"></card>
`,
    directives: [Card]
})
export class App {}

Properties

  • title {string} : a title text
  • subtitle {string} : a subtitle text
  • linkUrl {string} : a link url
  • linkUrl {string} : a image url
  • tags {string} : the tags text separated by comma