I want to check if my object is empty dont render my element, and this is my code:
This should do what you want:
or shorter Each {} creates a new instance and ==== comparison of different objects instances always results in false. When they are convert to strings === results to true Plunker example 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
or shorter
Each {} creates a new instance and ==== comparison of different objects instances always results in false. When they are convert to strings === results to true Plunker example 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Each {} creates a new instance and ==== comparison of different objects instances always results in false. When they are convert to strings === results to true
{}
====
false
===
true
Plunker example