ngneat/edit-in-place

TypeError: can't access property "tpl", ctx.viewModeTpl is undefined

catapop84 opened this issue · 2 comments

I'm submitting a

Bug report

Current behavior

I switch to standalone. Everything works great until I add component in html. I import EditableComponent in standalone imports but I receive this error:

ERROR TypeError: can't access property "tpl", ctx.viewModeTpl is undefined
    EditableComponent_Template ngneat-edit-in-place.mjs:22
<editable (save)="updateStage()">
                  <ng-template viewMode>hello world</ng-template>
                  <ng-template editMode>
                    <input editableOnEnter editableOnEscape editableFocusable />
                  </ng-template>
</editable>
@Component({
    selector: 'app-bot-flow',
    templateUrl: './bot-flow.component.html',
    styleUrls: ['./bot-flow.component.scss'],
    standalone: true,
  imports: [HorizontalTreeMenuComponent, NgIf, FormsModule, BotActionsListComponent, EditableComponent,EditModeDirective]
})

Angular: v17.0.4
edit in place : v1.9.0

Expected behavior

No response

Minimal reproduction of the problem with instructions

No response

What is the motivation / use case for changing the behavior?

No response

Environment

No response

Hello, you imported EditModeDirective as expected but the ViewModeDirective is missing.

Thanks. It's working.