|
@@ -2,15 +2,23 @@
|
|
import { Component, OnInit } from '@angular/core';
|
|
import { Component, OnInit } from '@angular/core';
|
|
import { CloudObject } from './../../../../../lib/ncloud';
|
|
import { CloudObject } from './../../../../../lib/ncloud';
|
|
import { CloudQuery } from './../../../../../lib/ncloud';
|
|
import { CloudQuery } from './../../../../../lib/ncloud';
|
|
|
|
+import { FormsModule } from '@angular/forms';
|
|
|
|
|
|
|
|
+@Component({
|
|
|
|
+ selector: 'app-device-management',
|
|
|
|
+ standalone: true, // 如果是独立组件
|
|
|
|
+ imports: [FormsModule], // 添加这行
|
|
|
|
+ templateUrl: './device-management.html',
|
|
|
|
+ styleUrls: ['./device-management.scss']
|
|
|
|
+})
|
|
@Component({
|
|
@Component({
|
|
selector: 'app-device-management',
|
|
selector: 'app-device-management',
|
|
standalone: true,
|
|
standalone: true,
|
|
imports: [
|
|
imports: [
|
|
// 确保导入了必要的模块
|
|
// 确保导入了必要的模块
|
|
],
|
|
],
|
|
- templateUrl: './device-management.component.html',
|
|
|
|
- styleUrls: ['./device-management.component.scss']
|
|
|
|
|
|
+ templateUrl: './device-management.html',
|
|
|
|
+ styleUrls: ['./device-management.scss']
|
|
})
|
|
})
|
|
export class DeviceManagementComponent implements OnInit {
|
|
export class DeviceManagementComponent implements OnInit {
|
|
devices: CloudObject[] = [];
|
|
devices: CloudObject[] = [];
|