Add svg prefix to avoid future name collision

This commit is contained in:
József Farkas
2016-04-24 11:43:58 +02:00
parent b9b2fcbf84
commit 6c1df933be
7 changed files with 24 additions and 26 deletions

View File

@@ -0,0 +1,24 @@
import { Component, OnInit, Input } from 'angular2/core';
@Component({
selector: 'g[svg-keyboard-key]',
template:
`
<svg:rect [id]="id" [attr.rx]="rx" [attr.ry]="ry"
[attr.height]="height" [attr.width]="width"
[attr.fill]="fill"
/>
`
})
export class SvgKeyboardKeyComponent implements OnInit {
@Input() id: string;
@Input() rx: string;
@Input() ry: string;
@Input() height: string;
@Input() width: string;
constructor() { }
ngOnInit() { }
}