This shows the execution order given JavaScript's Call Stack, Event Loop, and any asynchronous APIs provided in the JS execution environment (in this example; Web APIs in a Browser environment)
Given the code
import { ComponentFactoryResolver, ComponentRef, Directive, EventEmitter, Input, Type, ViewContainerRef } from '@angular/core'; | |
import { Subscription } from 'rxjs'; | |
@Directive({ | |
selector: '[lazyComp]' | |
}) | |
export class LazyCompDirective { | |
private _inputs; | |
private _outputs; | |
private subscription = new Subscription(); |
CodersX lΓ mα»t. ChΓΊng ta hoαΊ‘t Δα»ng vΓ¬ mα»t mα»₯c ΔΓch duy nhαΊ₯t: Thay Δα»i thαΊΏ giα»i mα»t cΓ‘ch tΓch cα»±c, bαΊ―t ΔαΊ§u bαΊ±ng viα»c tαΊ‘o nΓͺn mα»t nα»n giΓ‘o dα»₯c miα» n phΓ.
Mα»t team chα» mαΊ‘nh khi tαΊ₯t cαΊ£ mα»i ngΖ°α»i support lαΊ«n nhau, vΓ cΓΉng nhau lΓ m viα»c vΓ¬ mα»t mα»₯c tiΓͺu duy nhαΊ₯t. NαΊΏu chα» nghΔ© ΔαΊΏn bαΊ£n thΓ’n thΓ¬ mα»t lΓΊc nΓ o ΔΓ³ team sαΊ½ tan rΓ£ (nαΊΏu nhiα»u ngΖ°α»i cΓΉng nghΔ© vα» bαΊ£n thΓ’n), hoαΊ·c tα»± loαΊ‘i mΓ¬nh ra khα»i team.
People
![]() :bowtie: |
π :smile: |
π :laughing: |
---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
function parseVideo (url) { | |
// - Supported YouTube URL formats: | |
// - http://www.youtube.com/watch?v=My2FRPA3Gf8 | |
// - http://youtu.be/My2FRPA3Gf8 | |
// - https://youtube.googleapis.com/v/My2FRPA3Gf8 | |
// - Supported Vimeo URL formats: | |
// - http://vimeo.com/25451551 | |
// - http://player.vimeo.com/video/25451551 | |
// - Also supports relative URLs: | |
// - //player.vimeo.com/video/25451551 |
<h1>Angular 2 Recursive List</h1> | |
<ul> | |
<ng-template #recursiveList let-list> | |
<li *ngFor="let item of list"> | |
{{item.title}} | |
<ul *ngIf="item.children.length > 0"> | |
<ng-container *ngTemplateOutlet="recursiveList; context:{ $implicit: item.children }"></ng-container> | |
</ul> | |
</li> | |
</ng-template> |
#Comprehensive Introduction to @ngrx/store By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
β back to the gist-blog at jrw.fi
Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.
I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.
This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso
We will compare ASP.NET and Node.js for backend programming.
Source codes from examples.
This document was published on 21.09.2015 for a freelance employer. Some changes since then (14.02.2016):
async/await
. yield
and await
are used almost in the same way, so I see no point to rewrite the examples.