Skip to content

Instantly share code, notes, and snippets.

@justinyoo justinyoo/weapons.ts Secret
Created Mar 21, 2017

Embed
What would you like to do?
Using IoC Container in Vue.js and TypeScript App
// models/Weapon.ts
import { injectable } from "inversify";
import Weapon from "../interfaces/Weapon";
@injectable()
class Shuriken implements Weapon {
public constructor() {
this.name = "Shuriken";
}
public name: string;
}
@injectable()
class Katana implements Weapon {
public constructor() {
this.name = "Katana";
}
public name: string;
}
export { Shuriken, Katana };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.