Skip to content

Instantly share code, notes, and snippets.

@bradkovach
bradkovach / app.ts
Last active September 5, 2017 18:39 — forked from scottmcarthur/app.ts
How to use AngularJS ng.resource.IResource with TypeScript.
/// <reference path="angular.d.ts" />
/// <reference path="angular-resource.d.ts" />
/*
The intent of this fork is to show you how to separate your IResource from your Interfaces.
We had a need in our project to keep the resource separate from the business entity, so this
updated example reflects those changes.
Furthermore, I've added TSDoc (comments starting with /**) comments, which your IDE should be
able to pick up and present while you work.