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