Scope.$parent not working after upgrading to 1.2.4

Hi,

I have the following directive :
app.directive('selectFilter', ['$state', 'arrayService', '$ionicPopup', '$ionicModal', function($state, arrayService, $ionicPopup, $ionicModal) { return { restrict: 'E', templateUrl: "templates/directives/SelectFilter.html", require: 'ngModel', transclude: true, scope: {}, compile: function(element, attrs, transclude) { if (attrs.values) { attrs.$set('values', '$parent.' + attrs.values, false); } return function(scope, element, attrs, ngModelCtrl) { }

In version 1.1.0 I was able to do things like scope.values = scope.$eval(attrs.values);

I am not after upgrading to 1.2.4. scope.$parent is not the same parent between the 2 versions.

My directive is ugly and can be improve of course but I don’t think the problems comes from here.

Any help ?

Regards,
Clem

I investigate this a bit more and find out where the problem comes from.

I have to set a timeout when I affect the scope values in my “parent” scope.

That is quite unexpected but solved my problem for now. If anyone wants to look at why I have to timeout after a resolve, I’m happy to provide some code.

Regards
Clem