際際滷

際際滷Share a Scribd company logo
CreatingVideoHubApp
withAngular&Electron
Boris Yakubchik
Feb 20th 2018 @ AngularNYC
Four goals
1. Inspire those new to Angular
2. Show how awesome Electron is
3. Show how great Angular pipes are
4. Show how sweetAngular animations are
You can do it!Nov
Dec
Jan
Feb
Mar
Apr
May
June
Jul
Aug
Sept
Oct
Nov
Dec
Jan
Feb have something to show
started making this app
started learning Angular
started full time web dev
2017
2018
DEMO
Creating Video Hub App with Angular & Electron
main.ts home.component.ts
electron-builder.json
npm run electron:mac
npm run electron:windows
npm run electron:linux
.dmg
.exe
.appimage
Access Dev Console as you develop!
Miscellaneous notes
photonkit.com
Include a local DB if you need
Log errors in your build
asar: false
PIPESSince 1973
// Typical
template.html
// Better
// Now I¨m excited
Anatomy of a pipe
2)Transform input
1) Declare name
3) Return output
length.pipe.ts
How pure are your pipes?
pure impure
pure: false
changes when
string/number/boolean input changes or
object reference of date/array/function/object
every mouse move, keystroke,
timer tick, server response
default
Array.filter
Crazy idea for fun
crazyPipe.pipe.ts
myCrazyService.service.ts
template.html
Creating Video Hub App with Angular & Electron
Creating Video Hub App with Angular & Electron
Manual management:
? boolean: shown/hidden
? css for animation
? boolean: animation in progress
? setTimeout() for appear
? setTimeout() for disappear
? logic for interruptions
? non-reusable
Appear & Disappear animation
Angular management:
? boolean: shown/hidden
? css for animation
Appear & Disappear animation
define animation component.ts
template
reuse
Creating Video Hub App with Angular & Electron
Creating Video Hub App with Angular & Electron
http://dev.yboris.com/vh/
Online Demo !?!!
Thank you to:
Rohit Sodhia
Joe Pietruch
Kyle Rogers

More Related Content

Creating Video Hub App with Angular & Electron