My requirement is to get price of a stock and show it beside the stockname in brackets. Example: Ford Motors(Price:542)
To place the price beside stock name I built a custom filter and inside filter I am making ajax call and getting the price.
For this requirement I searched google and found some code which uses angular 1.0.0rc4 version and it works fine but when I try to implement the same with angular 1.5.8 it doesnt work. Please help me to make it work with 1.5.8 version.
filteris not the appropriate place to execute asynchronous requests. The purpose of a filter is to format a value for display. If you're looking to create a reusable piece of functionality, I would suggest you create a component that executes this logic.