diff --git a/.changeset/six-ghosts-exercise.md b/.changeset/six-ghosts-exercise.md new file mode 100644 index 0000000000..d1d7783f97 --- /dev/null +++ b/.changeset/six-ghosts-exercise.md @@ -0,0 +1,5 @@ +--- +'@builder.io/mitosis': minor +--- + +Remove on prefix on angulare event emits to be aligned with Angular Style Rule 05-16: Don't Prefix Output Properties diff --git a/packages/core/src/generators/angular/index.ts b/packages/core/src/generators/angular/index.ts index e3239fa385..7d95f85b22 100644 --- a/packages/core/src/generators/angular/index.ts +++ b/packages/core/src/generators/angular/index.ts @@ -877,8 +877,6 @@ export const componentToAngular: TranspilerGenerator = return `@Output() ${removeOnFromAngularOutputEvent(outputName)} = new EventEmitter()`; }); - outputs.forEach(console.log); - const domRefs = getRefs(json); const jsRefs = Object.keys(json.refs).filter((ref) => !domRefs.has(ref)); const componentsUsed = Array.from(getComponentsUsed(json)).filter((item) => {