This commit is contained in:
Ruin
2022-03-04 15:56:45 +08:00
parent 09be1dab5a
commit cdc15b979c
26 changed files with 296 additions and 155 deletions

View File

@@ -1,15 +1,19 @@
import { Component, OnInit } from '@angular/core';
import { Component, OnInit } from "@angular/core";
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss']
selector: "app-home",
templateUrl: "./home.component.html",
styleUrls: ["./home.component.scss"],
})
export class HomeComponent implements OnInit {
public textContent: any;
constructor() {}
constructor() { }
ngOnInit(): void {
ngOnInit(): void {}
changeKeyword() {
this.textContent = "改变keywords的值";
}
getKeyword() {
console.log(this.textContent);
}
}