mirror of
https://github.com/lainbo/component-party.git
synced 2026-04-05 04:59:02 +08:00
16 lines
304 B
TypeScript
16 lines
304 B
TypeScript
import { Component } from "@angular/core";
|
|
|
|
@Component({
|
|
selector: "app-css-style",
|
|
template: `
|
|
<h1 class="title">我是红色的</h1>
|
|
<button style="font-size: 10rem">我是一个按钮</button>
|
|
`,
|
|
styles: `
|
|
.title {
|
|
color: red;
|
|
}
|
|
`,
|
|
})
|
|
export class CssStyleComponent {}
|