Card view component for angular2
TypeScript
Latest commit 84c87a5 Nov 20, 2016 @c-bata committed on GitHub Update README.md
Permalink
Failed to load latest commit information.
components Update component name Aug 2, 2016
example Update README.md Aug 2, 2016
.gitignore Add npm settings Aug 2, 2016
.npm-ignore Add npm settings Aug 2, 2016
LICENSE Initial commit Aug 2, 2016
README.md Update README.md Nov 20, 2016
ng2-card.ts Add components Aug 2, 2016
package.json Add npm settings Aug 2, 2016
tsconfig.json Add npm settings Aug 2, 2016
tslint.json Add npm settings Aug 2, 2016

README.md

ng2-card

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

example

Demo - this is my portfolio website.

Installation

$ npm install --save ng2-card

Usage

import {Component} from "@angular/core";
import {Card} from "ng2-card/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