Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
angular.module('foo').factory('MyModal', function(Modal) {
return class MyModal extends Modal {
constructor(message: string) {
const options = {
message,
height: 400,
width: 600
}
super(options)
}
}
})
import {Modal} from './interfaces'
export interface MyModal extends Modal {
new(message: string): this
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment