mr-mig / yaf-angular

Angular-based yaf implementation
1 stars 1 forks source link

delayed initialisation in pre link state #4

Closed dev-tim closed 9 years ago

dev-tim commented 9 years ago

Even after initialisation of $scope state in prelink this state will be overwritten once link will be executed.

  // here initially childState is undefined.
  $scope.childState = new this.injector.SomeChildStateConstructor();
  var updateState = fn.set($scope.communityListState,'communityUsers');
  asyncFunction(function(){
            // here it will be overwritten
            $scope.childState;
  });