Skip to content

Instantly share code, notes, and snippets.

@shubhamsinha92
Created July 10, 2015 20:12
Show Gist options
  • Save shubhamsinha92/01b492c62c4dd5ad3a7c to your computer and use it in GitHub Desktop.
Save shubhamsinha92/01b492c62c4dd5ad3a7c to your computer and use it in GitHub Desktop.
$rootScope.nodeId = $stateParams.studynodeRef;
// $scope.id = '"' + $rootScope.nodeId + '"';
Studies.all().then(function(payload){ $scope.studies = payload;
$scope.study = $filter('filter')(payload, function (d) {
$scope.id = '"' + $rootScope.nodeId + '"';
return d.nodeRef === $scope.id ;})[0];
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment