Refreshable AngularjS service
But in the real world, we rarely hardcode things. We are usually interested in dynamic data. There are two (major) alternatives to get dynamic data into an AngularJS browser application – either generating the data into your JS code, or you make an API call to your backend after your AngularJS application has loaded.Permalink