• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: i Get a “Property type does not exist on type boolean” error when i try to do an inline ternary operator in vue3 typescript

Resolved: i Get a “Property type does not exist on type boolean” error when i try to do an inline ternary operator in vue3 typescript

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

The error Property type does not exist on type boolean shows on the show.value boolean
when I try to apply the text for the icon based on the truthiness

Answer:

You should use show instead of show.value in your template. show.value is only available within the script tag in the composition api.

If you have better answer, please add a comment about this, thank you!

javascript typescript vue-composition-api vue.js
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Why is NGINX’s $request_uri empty?

24/03/2023

Resolved: How to convert Java bytecode to Webassembly using CheerpJ compiler

24/03/2023

Resolved: Is pandas groupby() function always produce a DataFrame with the same order respect to the column we group by?

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.