These are chat archives for angular/material

1st
Nov 2017
texirv0203
@texirv0203
Nov 01 2017 00:29

@all hi,

  • I am trying to learn rxjs.
  • I am trying to add auth token validation through my front end for my githunb api.
  • can I achieve in js side or do I need to use express js to achieve it
  • I googled for for how to add auth validation.
  • but I am not sure how to add it to my code.
  • can you guys tell me how to achieve.
  • providing my code below

https://repl.it/N0E3/1

const getJsonPromise = $.getJSON('https://api.github.com/users');

Rx.Observable
  .fromPromise(getJsonPromise)
  .retryWhen(errors => {
    return errors.scan((errorCount, err) => {
      //auth token validation
    }, 0);
  })
  .subscribe(users => {
    console.log('users ready', users);
  });
Marcin Cichocki
@marcincichocki
Nov 01 2017 12:15
Hey guys, any idea why @size.start event is not firing? @size.done is working. https://stackblitz.com/edit/angular-571u6i?file=app%2Fcomponents%2Fnav%2Fnav.component.html
Joshua Barnett
@synthecypher
Nov 01 2017 14:52
In the Angular Material documentation it mentions that if you need to do more customization of the theme (other than changing colors).
You have to "build a custom version of the angular-material.css file using SASS and custom variables." are there any examples of projects that do this?
Joshua Barnett
@synthecypher
Nov 01 2017 15:14
How should I import a layout variable from angular material? e.g. $layout-breakpoint-xs to use in my own stylesheets?