As I work on my Angular project, I encountered a situation where one component needed to be referenced in the HTML of another component. To make this connection, I used kebab case for the selector like so:
@Component({
selector: 'swiftlog-navbar',
templateUrl: './swiftlog-navbar.component.html',
styleUrls: ['./swiftlog-navbar.component.css']
})
export class SwiftlogNavbarComponent {
Upon running yarn start, an error message appeared:
WARNING in ./src/main/webapp/app/swiftlog-navbar/swiftlog-navbar.component.ts [4, 13]: The selector of the component "SwiftlogNavbarComponent" should be named undefined (https://angular.io/styleguide#style-05-02)'
I am puzzled by the phrase "should be named undefined" and unsure which rule from the tslint file is triggering this issue. If anyone has insights or suggestions on how to address this, I would greatly appreciate it. I have looked through the style guide provided but couldn't find any clear answers.
Thank you, Mart