Skip to content

Instantly share code, notes, and snippets.

@blacktambourine
Created March 16, 2016 07:44
Show Gist options
  • Save blacktambourine/5521d910819d9fffdc4a to your computer and use it in GitHub Desktop.
Save blacktambourine/5521d910819d9fffdc4a to your computer and use it in GitHub Desktop.
Parameter Mapping in Angular//
$scope.callWebApiService(SearchService,
{
Keywords: searchData.keywords,
CategoryPaths: searchData.categoryPaths,
SubCategoryPaths: searchData.subCategoryPaths,
Types: searchData.types,
CurrentPage: $scope.pager.currentPage,
DateFrom: $scope.dateFrom,
DateTo: $scope.dateTo
})
.then(function (result){
//do something
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment