AnsweredAssumed Answered

what is difference between model created with createBean and this.model present in js file?

Question asked by Indrajeet Latthe on Mar 9, 2018

I've been doing experiments from 2days to figure out the difference. 

So I've put console.log (self.model); in /custom/modules/Emails/clients/base/views/preview/preview.js and Yes I'm in an async operation there thats why I'm using self;

And I did this.

var accountsBean ='Emails', {id: self.model.get('id)')});

But I've found there is a lot of difference between them.

self.model have to_collection,from_collection filled with data whereas these fields are empty in accountsBean but to_addrs_names,from_addr_name are filled and those are not present in self.model


Is there anything I'm missing related to core functionality or anything related to backbone?