import {Component} from '@angular/core';
@Component({
selector: 'login-page',
templateUrl: './login.component.html',
styleUrls: ['./login.component.css']
})
export class LoginComponent {
}
selector提示红色,意思是应该有前缀app.修改为app-login-page即可
import {Component} from '@angular/core';
@Component({
selector: 'login-page',
templateUrl: './login.component.html',
styleUrls: ['./login.component.css']
})
export class LoginComponent {
}
selector提示红色,意思是应该有前缀app.修改为app-login-page即可
本文标题:angular 提示错误TSLint: The selector
本文链接:https://www.haomeiwen.com/subject/qdlsfltx.html
网友评论