僕が案件でAngularを書きまくっていたのは、6とか8の時代ですが、最近のバージョンで気になるアップデートが入っていました。 シグナル(v16から) スタンドアローンコンポーネント(v14から) 他のフレームワークをいろいろ触ると、Angularはかなり独特な雰囲気があります。隠しきれないJava感というか、他のフレームワークでは存在しない様々な概念が見え隠れして、それをキャッチアップするだけでも結構重いです。もちろん、それぞれ意味があって、「きっとこういうことをしたいんだろうな」というニーズがあってのことかとは思いますが、いろんなフレームワークをいったりきたりすると、ストレスが多少あります。 しかし、この新しい機能を使って、他のフレームワークでは見ない要素をそぎ落としてAngularを使ってみると、まあ悪くないんじゃないかと思いました。 モジュールを使わないAngularでアプリケーシ
Why you should never use function calls in Angular template expressions Angular templates are awesome and extremely powerful. With structural directives and property bindings, we are equipped to create even the most complex views with very clear semantics: <ng-container *ngIf="isLoggedIn"> <h1>Welcome {{ fullName }}!</h1> </ng-container>Because expression are so powerful, they can easily grow in c
Update 24.05.2018: Example code runs on Angular 5 now. When you write a custom component in Angular (≥ 2.x) that updates its content whenever input changes you can add all necessary computations to the ngOnChanges lifecycle hook. @Component({ selector: 'greeter', inputs: ['name'], template: `<div>{{ greeting }}</div>`, }) export class Greeter implements OnChanges { @Input() name: string; greeting:
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く