With the isolate scope for the ga-import-kml directive you'll need to apply the ng-controller directive to a parent element. As I said, Angular refuses to have two different scopes on the same element. An element cannot be associated to more than one scope.