Topic: error on mdbBtn
declan.ward premium asked 1 year ago
I have mdb 12.0.0 installed (according to changelog) running Angular 12.2.3
*_Expected behavior_*Clean compile (ng serve)
*_Actual behavior_*Error: src/app/app.component.html:68:11 - error TS2322: Type 'string' is not assignable to type 'boolean'.
<a mdbBtn floating="true" size="lg" gradient="purple" mdbWavesEffect>
It is complaining about floating="true"
*_Question_*Sorry for dumb question but what may I have missed?
Through trial and error I discovered a setting in tsconfig.json that caused the problem.
Changing "strictTemplates": true
to "strictTemplates": false
solved my problem.
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Premium
- Premium support: Yes
- Technology: MDB Angular
- MDB Version: MDB4 11.1.0
- Device: Desktop
- Browser: FF
- OS: Windows 10
- Provided sample code: No
- Provided link: No