An application model in Cairngorm 3
Hi,
I'm just looking into using Cairngorm 3 with Parsley. My application has several views, similar to the InSync modular example, but a large amount of the data needs to be shared between views.
I guess because of this, I shouldn't be using modules.
Also, where each view in the examples has its own presentation model, I guess I will need an overall application model for holding this shared data? Does this sound right?
To clarify, I will have one view which lists a company's assets.
I will have another view which shows income and expenditure.
In a third view, I will be showing graphs which shows the company's value over time, which will include data from the assets and the income data.
So, would I be correct in creating the following views:
presentation.Assets with associated presentation.AssetsPM
presentation.IncomeExpenditure with associated presentation.IncomeExpenditurePM
presentation.CompanyValue with associated presentation.CompanyValuePM
and a final
domain.CompanyData class which holds all the shared company data?
and then, within each PM, using:
[Inject]
[Bindable]
public var companyData:CompanyData;
Thanks for your help, I'm just getting my head around best practices.
