How can I store “this” object in the database?
I can’t think of any object in an Ionic application for which this would make sense.
That’s a meaningless concept absent context. “this” is an instance of a particular class. If you are talking about framework-managed objects such as pages or services, they aren’t serializable. They are managed by Angular DI. If you are talking about some model-layer class you have made, you should be serializing it from outside it, not within. Therefore, I cannot think of any context in an Ionic application where attempting to serialize “this” makes any sense.
You explained it beautifully. Thanks.