Codelyzer: no-access-missing-member reports false positive

Created on 20 Sep 2017  路  2Comments  路  Source: mgechev/codelyzer

I tried to use https://github.com/kekeh/ngx-mydatepicker with this code:

<form>
  <div class="input-group">
      <input #dp="ngx-mydatepicker" class="form-control" name="mydate" [(ngModel)]="model" ngx-mydatepicker [options]="myOptions">
      <span class="input-group-btn">
          <button type="button" class="btn btn-default" (click)="dp.clearDate()">
              <i class="glyphicon glyphicon-remove"></i>
          </button>
          <button type="button" class="btn btn-default" (click)="dp.toggleCalendar()">
              <i class="glyphicon glyphicon-calendar"></i>
          </button>
      </span>
  </div>
</form>

The no-access-missing-member rule complains about:

ERROR: ....component.html[5, 65]: The method "dp" that you're trying to access does not exist in the class declaration.
ERROR: ....component.html[8, 65]: The method "dp" that you're trying to access does not exist in the class declaration.

All 2 comments

Please, use the search to find already existing issues.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

QuentinFchx picture QuentinFchx  路  3Comments

michaeljota picture michaeljota  路  4Comments

lazarljubenovic picture lazarljubenovic  路  4Comments

davidanaya picture davidanaya  路  4Comments

dev054 picture dev054  路  4Comments