Skip to content

Instantly share code, notes, and snippets.

@justinyoo justinyoo/hello.vue Secret
Created Mar 21, 2017

What would you like to do?
Using IoC Container in Vue.js and TypeScript App
// Hello.vue
<div class="hello">
<h1>{{ msg }}</h1>
<h2>Essential Links</h2>
<script lang="ts">
import Hello from "./Hello.ts";
export default Hello;
// Hello.ts
import Vue from "vue";
import Component from "vue-class-component";
import Ninja from "./Ninja.vue";
name: "Hello",
components: {
"ninja": Ninja
export default class Hello extends Vue {
msg: string = "Hello World";
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.