Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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