Thursday, 22 August 2013

Sub page using ng-include and refearing main pages $scope objects

Sub page using ng-include and refearing main pages $scope objects

I have had problems with variables defined in $scope of Main page and then
refering them in sub pages that are included in Main page using ng-include
syntax.
Many times those $scope variables are empty especially in first load.
Is this because of some kind of synchronizing problem and how to avoid it?
I like to use sub pages but what is the Best Practice to include them in
Main page so that there would not be problems with $scope variable?
Thanks a lot,
Michael

No comments:

Post a Comment