Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Hello. Regarding angularjs: How to get the values of the parameters that comes in the URL?

I suppose there is something in angularjs to avoid doing this: setValoresParURL(window.location.search.substring(2));

function setValoresParURL(url) { var param = window.location.search.substring(1).split("&"); var t = param[1].split("="); $scope.numSiniestro = t[1]; t = param[2].split("="); $scope.seqRecupero = t[1]; }

2 Answers

Thanks Clayton, unfortunately I have not had much time to test, I'm finding out whether there is a Grid that use AngularJS that allows me to edit data and it has the functionality for filtering, paging, editing in line and pop up and sorting