-
-
Save petebacondarwin/b1900da9e9f76c5d0fc5243330b3126e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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