Angular / RxJS v6 version for AngularMIX 2018
This is the repo with all the samples we use in the Workshop.
- Clone the repo locally (or download the zip and unzip)
git clone https://github.com/wardbell/rxjs-in-ng-workshop.git�
- Install the node modules
npm install
- Build & serve the app (
npm start
runs inlocalhost:8806
)
npm start
- Load it in your browser
Open browser localhost:8806
I recommend keeping your browser developer tools open at all times.
- Open the source in your code editor.
The "Play Ops" and "Play Subject" examples import and run a neighboring code example file.
To change the example, import a different file.
- Open the folder (e.g.,
play-ops
) - Open the component file (e.g.,
play.component.ts
) - Find the lines that import an example and set the
playName
import { play } from './01-map';
const playName = '01-map';
- Change them to the one you want to see
import { play } from './02-throw';
const playName = '02-throw';
- Browser refresh
It should refresh automatically. Sometimes it doesn't. You may have to clear the browser cache. Keeping your F12 browser developer tools open helps.