UNPKG

ipsos-components

Version:

Material Design components for Angular

50 lines (42 loc) 1.17 kB
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {ENTER, COMMA} from '@angular/cdk/keycodes'; import {Component} from '@angular/core'; import {MatChipInputEvent} from '@angular/material'; // import { Apollo } from 'apollo-angular'; // import gql from 'graphql-tag'; import { Subscription } from 'rxjs/Subscription'; // const AllDashboardQuery = gql` // query allDashboards { // allDashboards { // id // name, // logoUrl // } // } // `; @Component({ moduleId: module.id, selector: 'dashboard', templateUrl: 'dashboard.html', styleUrls: ['dashboard.css'] }) export class DashboardCom { constructor( ) { } allDashboards: Subscription; allDashboardsData:any; ngOnInit(){ // this.allDashboards = this.apollo.watchQuery({ // query: AllDashboardQuery // }).subscribe(({data, loading}: any) => { // this.allDashboardsData = data.allPosts; // console.log( loading); // }); } }