# Ng-model with objects

**URL:** <https://forum.ionicframework.com/t/ng-model-with-objects/106751>\
**Category:** ionic-v3\
**Created:** [September 26, 2017, 8:34am UTC](https://forum.ionicframework.com/t/ng-model-with-objects/106751 "2017-09-26T08:34:03Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [September 28, 2017, 11:41pm UTC](https://forum.ionicframework.com/t/ng-model-with-objects/106751/10 "2017-09-28T23:41:48Z")

</div>

> [@FrancoisIonic](#):
>
> for you \*Ngif is bad?

Only when it’s used to defend against undefined properties in the controller. There are lots of valid uses for it, such as conditionally displayed error messages when a form field is invalid, an accordion component, or [this](https://forum.ionicframework.com/t/asking-your-advise-about-dynamic-static-loading-components-pages-html/73980/2) sort of design for rendering a domain language.

---

_[View the full topic](https://forum.ionicframework.com/t/ng-model-with-objects/106751)._
