Multiple viewModels data binding

training

#1

Hi @NickIliev sir,
I have two viewmodel.DataModel and pageModel.
DataModel
var viewModel = new observableModule.fromObject({
newsData: new ObservableArray([]),
})

pageModel
var dataModel = require("~/shared/DataModel"),
var pageData = new observableModule.fromObject({
newsData: dataModel.newsData
});
On pageLoading

Iam binding opageData.
But When i write xml condition

,
Not working . But when i change page and navigate back that condition is applying. Where is my proble actually.