Skip to content
This repository was archived by the owner on Feb 17, 2024. It is now read-only.

Commit 1ce490d

Browse files
committed
feat: remove -component when creating from selector
1 parent bc48552 commit 1ce490d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ function Angular2ConventionsLoader(source, sourcemap) {
114114
if (__args && __args[3]) {
115115
var __className = __args[3].split(' ')[0];
116116
__selector = dashCase(__className);
117+
__selector = __selector.replace('-component', '');
117118
metadata = 'selector: "' + __selector + '",\n' + metadata;
118119
__args = null;
119120
}

0 commit comments

Comments
 (0)