mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Adds support for `styleUrls` definitions in the same way `templateUrl` definitions are provided; clicking on styleUrl will take a user to the respective file. Unifies some code in determining a URL definition. We first check if a url is a `templateUrl`; if it's not, we check that it's a `styleUrl` or return no definitions. PR Close #32464
8 lines
209 B
TypeScript
8 lines
209 B
TypeScript
import { Component } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'my-widget',
|
|
templateUrl: './widget.component.html',
|
|
styleUrls: ['./style.css'],
|
|
})
|
|
export class WidgetComponent { name = 'Angular'; }
|