danguilherme / ng-cli-pug-loader

:sparkles: Angular schematics to add .pug to your project
GNU General Public License v3.0
56 stars 17 forks source link

pug arguments #17

Closed luponZ closed 5 years ago

luponZ commented 5 years ago

there is my code

div(class="jsonTra__box")
  article(nz-row nzType="flex" nzJustify="space-around" class="jsonTra__box__wrap")
    section(nz-col nzSpan="12" class="jsonTra__box__wrap--input")
      div(class="jsonTra__box__wrap--input__wrap")
        app-json-tree('[jsonData]'="jsonData" '(editEmitter)'="editHandle($event)")
        button(nz-button nzType="primary" class="jsonTra__box__wrap--input__wrap__button--reset") Reset
    div(nz-col nzSpan="12" class="jsonTra__box__wrap--output") col-6s
    app-multi-drawer-component(
      '[visible]'="drawerState"
      '(drawerCloseEmitter)'="drawerStateHandle($event)"
    )

but it tell me ERROR in src/app/app.component.pug(1,253): : Expected 0 arguments, but got 1.

how can i fix it, thanks

danguilherme commented 5 years ago

Maybe some of your functions are not expecting an $event input. Have you tried running without AOT to check this?

danguilherme commented 5 years ago

Closing due to inactivity.