Skip to content

Instantly share code, notes, and snippets.

@petebacondarwin
Forked from bcherny/angular-di.ts
Last active June 14, 2016 06:34
Show Gist options
  • Save petebacondarwin/b1900da9e9f76c5d0fc5243330b3126e to your computer and use it in GitHub Desktop.
Save petebacondarwin/b1900da9e9f76c5d0fc5243330b3126e to your computer and use it in GitHub Desktop.
import {Modal} from './interfaces'
export interface MyModal extends Modal {
new(message: string): this
}
///////////
// obviously this is contrived because you are unlikely to want a singleton modal instance
angular.module('foo').value('myModalInstance', new MyModal('some message'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment