UNPKG

vchat

Version:

An experimental video chat server/client hybrid

22 lines (21 loc) 587 B
import Ember from "ember"; const { Component, run } = Ember; export default Component.extend({ tagName: 'div', classNames: ['container-fluid'], registerAs: null, actions: { hostCall: function() { return this.sendAction('hostCall'); }, joinCall: function(){ return this.sendAction('joinCall'); } }, didInsertElement : function () { run.scheduleOnce('afterRender', this, '_register'); }, _register: function() { this.set('registerAs', this); // register-as is a new property } });