You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SVG does not allow the use of custom elements like HTML5 does. SVG's will not render the contents of a custom element (example). The solution for that is to use attribute selectors (angular/angular#1632 (comment)).
Current behavior
Codelyzer does not allow attribute selectors on components (Due to style guide 05-03):
@Component({selector: 'g[appCustom]'...
[tslint] The selector of the component "CustomComponent" should be named kebab-case and include dash (https://goo.gl/mBg67Z) (component-selector)
Desired behaviour
A new config for SVG components:
The style guide does not mention SVG components and how to handle them but this comment confirms that SVG support is intended.
Figuring out if a component is an SVG component is quite easy as Angular 2 requires the svg namespace to be given on the root element (angular/angular#7216 (comment)).
The text was updated successfully, but these errors were encountered:
SVG does not allow the use of custom elements like HTML5 does. SVG's will not render the contents of a custom element (example). The solution for that is to use attribute selectors (angular/angular#1632 (comment)).
Current behavior
Codelyzer does not allow attribute selectors on components (Due to style guide 05-03):
Desired behaviour
A new config for SVG components:
The style guide does not mention SVG components and how to handle them but this comment confirms that SVG support is intended.
Figuring out if a component is an SVG component is quite easy as Angular 2 requires the
svg
namespace to be given on the root element (angular/angular#7216 (comment)).The text was updated successfully, but these errors were encountered: