Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Angular] Member 'd' is not callable #234

Closed
Liero opened this issue Feb 21, 2018 · 3 comments
Closed

[Angular] Member 'd' is not callable #234

Liero opened this issue Feb 21, 2018 · 3 comments
Assignees

Comments

@Liero
Copy link

@Liero Liero commented Feb 21, 2018

If I use default Modal sample from ng-bootstrap I get errors like

[Angular] Member 'd' is not callable

<ng-template #confirmDlg let-c="close" let-d="dismiss">
    <div class="modal-header">
      <h4 class="modal-title">Confirm</h4>
      <button type="button" class="close" aria-label="Close" (click)="d('Cross click')">
        <span aria-hidden="true">&times;</span>
      </button>
    </div>
    <div class="modal-body">
      <p>Content</p>
    </div>
    <div class="modal-footer">
      <button type="button" class="btn btn-outline-dark" (click)="d('Cross click')">Close</button>
    </div>
  </ng-template>

using

  • VS Code 1.20.1,
  • Angular 5.2.0 (app genereted by ng CLI)
  • Angular Language Service 0.1.9 VS Code extension
  • @ng-bootstrap/ng-bootstrap: "^1.0.0"
@razzildinho
Copy link

@razzildinho razzildinho commented May 2, 2018

I had the same issue, managed a workaround where I add the function call to the assignment.

<ng-template #content let-ca="close('a')" let-cb="close('b')" let-d="dismiss()">
  <button (click)="ca">Close with 'A'</button>
</ng-template>
@kyliau kyliau self-assigned this Oct 28, 2019
kyliau added a commit to kyliau/angular that referenced this issue Nov 13, 2019
This commit fixes a long standing bug whereby a template variable that
gets initialized to a class method gets resolved to the Any type, thus
when it is called the language service produces error "Member X is not
callable".

PR closes angular#16643
PR closes angular/vscode-ng-language-service#234
kyliau added a commit to kyliau/angular that referenced this issue Nov 13, 2019
This commit fixes a long standing bug whereby a template variable that
gets initialized to a class method gets resolved to the Any type, thus
when it is called the language service produces error "Member X is not
callable".

PR closes angular#16643
PR closes angular/vscode-ng-language-service#234
kyliau added a commit to kyliau/angular that referenced this issue Nov 13, 2019
This commit fixes a long standing bug whereby a template variable that
gets initialized to a class method gets resolved to the Any type, thus
when it is called the language service produces error "Member X is not
callable".

PR closes angular#16643
PR closes angular/vscode-ng-language-service#234
@kyliau
Copy link
Member

@kyliau kyliau commented Nov 13, 2019

Sorry it took so long, angular/angular#33782 should fix this.

kyliau added a commit to kyliau/angular that referenced this issue Nov 14, 2019
This commit fixes a long standing bug whereby a template variable that
gets initialized to a class method gets resolved to the Any type, thus
when it is called the language service produces error "Member X is not
callable".

PR closes angular#16643
PR closes angular/vscode-ng-language-service#234
alxhub added a commit to angular/angular that referenced this issue Nov 15, 2019
This commit fixes a long standing bug whereby a template variable that
gets initialized to a class method gets resolved to the Any type, thus
when it is called the language service produces error "Member X is not
callable".

PR closes #16643
PR closes angular/vscode-ng-language-service#234

PR Close #33782
@angular-automatic-lock-bot
Copy link

@angular-automatic-lock-bot angular-automatic-lock-bot bot commented Mar 13, 2020

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.