Skip to content

Instantly share code, notes, and snippets.

View luixaviles's full-sized avatar

Luis Aviles luixaviles

View GitHub Profile
// Actions you can take on the App
export enum Action {
JOINED,
LEFT,
RENAME
}
// Socket.io events
export enum Event {
CONNECT = 'connect',
import {NgModule} from '@angular/core';
import {YouTubePlayerModule} from '@angular/youtube-player';
@NgModule({
imports: [
YouTubePlayerModule,
],
declarations: [YoutubePlayerExample],
})
export class YoutubePlayerExampleModule {
<google-map height="400px"
width="750px"
[center]="center"
[zoom]="zoom"
(mapClick)="addMarker($event)"
(mapMousemove)="move($event)"
(mapRightclick)="removeLastMarker()">
<map-marker #marker
*ngFor="let markerPosition of markerPositions"
[position]="markerPosition"
import { Component, OnInit } from '@angular/core';
import { Action } from './shared/model/action';
import { Event } from './shared/model/event';
import { Message } from './shared/model/message';
import { User } from './shared/model/user';
import { SocketService } from './shared/services/socket.service';
@Component({
selector: 'tcc-chat',