Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Scope.$parent not working after upgrading to 1.2.4

$
0
0

@cdungler wrote:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>