ngx-modialog icon indicating copy to clipboard operation
ngx-modialog copied to clipboard

Compile issue with fullTemplateTypeCheck: true

Open achimha opened this issue 7 years ago • 1 comments

  • I'm submitting a ... [X] bug report

Angular 5.2 brings a new AoT compiler option for more thorough template type checking. This option is expected to default to true in the future:

https://blog.angular.io/angular-5-2-now-available-312d1099bd81

Trying to build a project using ngx-modialog with this option set to true, gives errors:

ERROR in node_modules/ngx-modialog/plugins/bootstrap/src/ngx-modialog-bootstrap.ng-flat.d.ts.BSMessageModalBody.html(8,13): : Property 'defaultValue' does not exist on type 'MessageModalPreset'.
node_modules/ngx-modialog/plugins/bootstrap/src/ngx-modialog-bootstrap.ng-flat.d.ts.BSMessageModalBody.html(10,13): : Property 'placeholder' does not exist on type 'MessageModalPreset'.
node_modules/ngx-modialog/plugins/bootstrap/src/ngx-modialog-bootstrap.ng-flat.d.ts.BSMessageModalBody.html(9,13): : Property 'defaultValue' does not exist on type 'MessageModalPreset'.
  • Please tell us about your environment:
  • Angular version: 5.2.0 / CLI 1.6.2
  • Browser: [all]

achimha avatar Jan 16 '18 07:01 achimha

This is not a fix but if anyone comes to here i handle it by adding

defaultValue: any; placeholder: any;

to: node_modules\angular2-modal\plugins\bootstrap\src\presets\message-modal-preset.d.ts

hishtadlut avatar Mar 16 '21 10:03 hishtadlut