I try to query all people data from the swap api. The URL swapi.co/api/people returns an object with an people array and the URL(swapi.co/api/people/?page=2) where I get the next data from. What I want to do is that the subscribe method updates the angular component every time a new page is available.
I have been writing AngularJS apps for awhile now, but Typescript is new to me, and then adding in AngularJS to Typescript is a bit different than I am use to.
I am working on migration of angular 1 project to angular 2 . In angular 1 project I was using angular.equals for object comparison
angular.equals($ctrl.obj1, $ctrl.newObj); , I searched online for equivalent method in angular 2 but could not find any matching result.
New TypeScript async/await feature uses ES6 promises. AngularJS uses
$q service promises with slightly different interface.
I’m trying to create an AngularJS directive using TypeScript. My directive requires ‘ngModel’ and I’m also using a custom service injected in my directive.
My main problem is that my service can’t be used inside my link function.
I am developing SPA using Asp.Net Web API and AngularJS. I also use TypeScript to get static typing. So, I added DefinitelyTyped angularjs.
I have some code I would like to ask questions about on stackoverflow. The code is written in AngularJS with Typescript, and does manipulation and watching of the $location.hash. I now have the code on github at https://github.com/svdoever/AngularJS-bookviewer. Is it possible to have this code, preferably without the compiled Typescript files, up at http://plnkr.co?
Before when not using Typescript I was adding my ui-router state information like this:
I want to use Chartjs(chartjs.org) as my charting tool along with AngularJS using TypeScript. I have installed DefinitelyTyped for Chartjs from GitHub to incorporate creation of Chartjs charts in my TypeScript written controller. I can’t find any related questions on doing this thing.