updated with example, changed request to use native angular instead of jquery