Reactive Form sample
<textarea [formControl]="formControl" [maxlength]="length">
<span *ngIf="formControl.dirty"> dirty </span>
<button [disabled]="formControl.invalid">submit</button>Custom Validator
Reactive Form sample
<textarea [formControl]="formControl" [maxlength]="length">
<span *ngIf="formControl.dirty"> dirty </span>
<button [disabled]="formControl.invalid">submit</button>Custom Validator
| // https://rxviz.com/v/7J2laXyo | |
| var a = Rx.Observable | |
| .interval(500) | |
| .take(6) | |
| .groupBy(x => x %2 === 0) | |
| var b = a.flatMap(x => x) | |
| var bb = a.mergeAll() | |
| var sw = a.switchMap(x => x) | |
| var exh = a.exhaustMap(x => x) |
Redux(ngrxの流れ)
sequenceDiagram
participant Component
participant Action
participant Reducer
participant Store
participant Effect| import std.stdio; | |
| import std.traits; | |
| import std.range; | |
| import std.array; | |
| import std.algorithm; | |
| import core.sync.mutex; | |
| class A { | |
| private int private_field; | |
| public string public_field; |
| Imports System.Runtime.InteropServices | |
| Module Module1 | |
| ' int hoge(int val) { return val; } | |
| <DllImport("ConsoleApplication2.dll", CallingConvention:=CallingConvention.Cdecl)> | |
| Public Function hoge(val As Int32) As Int32 | |
| End Function | |
| ' int foo(int* val) { *val = *val + 200; return val; } |
| import std.stdio; | |
| import std.string : strip, toLower, format; | |
| import std.conv : to; | |
| import std.regex : ctRegex, matchFirst; | |
| import std.file : readText; | |
| import pegged.grammar; | |
| mixin(grammar(` | |
| Air: |
| import std.stdio, std.datetime, std.conv; | |
| void main() { | |
| auto t = Clock.currTime(); | |
| auto c = t.endOfMonth.day; | |
| auto o = new Date(t.year, t.month, 1).dayOfWeek.to!int; | |
| foreach (i; 0 .. o) { | |
| write(" "); | |
| } | |
| foreach (i; 1 .. c + 1) { | |
| writef("%2d", i); |
| import std.stdio; | |
| import std.string; | |
| import std.array; | |
| import pegged.grammar; | |
| import markdown; | |
| mixin(grammar(MarkdownGrammar)); | |
| void main() { | |
| auto doc = Markdown(sampleMd).children.front; |
| import std.stdio : write, writef, writeln; | |
| import std.datetime : Clock, Date; | |
| import std.conv : to; | |
| void main() { | |
| auto t = Clock.currTime(); | |
| auto count = t.endOfMonth.day; | |
| auto offset = new Date(t.year, t.month, 1).dayOfWeek.to!int; | |
| foreach (i; 0 .. offset) { |