Angular directive for extending scope.