Posts tagged with javascript
Ordering and filtering objects with ng-repeat
Published 26 March 2014 in archive with tags angular , javascript AngularJS allows you to iterate over collections using theng-repeat
directive. You have the ability to order and filter the collection, but this only works for arrays, not for objects. You'd think that you'd retain the functionality of arrays, considering the object is treated like one, but you don't.
Continue reading …
Remove params from URL in JavaScript
Published 3 December 2013 in archive with tags regex , javascript Let us say the param we want to remove issession
and our URL is http://www.example.com/?session=lasgfnasolgnasgn&id=500&other=100
. We can remove it like so:
Continue reading …