Card view component for angular2. This library is a pre release.
Demo - this is my portfolio website.
$ npm install --save ng2-card
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 {}
- 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