Ok... let me explain: it's going to be Angular 4.0, or just Angular This is a guest blog post by Juri Strumpflohner. Juri is a full-stack developer, architect and tech lead with a passion for frontend development, especially Angular. Juri writes technical articles on his personal blog and is the author of some online video courses. He also likes to engage and help the Angular community on Twitter,
2023 2023-12-04 Angular: Input Transforms For Arrays In Query Params #Angular 2023-12-04 Angular: 配列クエリパラメータのためのInput Transforms #Angular 2023-11-22 記事中のURLプレビューを実装した (Cloudflare Pages Functions) #Cloudflare #雑記 2023-11-18 『スタッフエンジニア』読後メモ #読書 #雑記 2023-11-16 アドベントカレンダーに参加してほしい #コミュニティ #雑記 2023-11-13 プロジェクトはキックオフが9割 #雑記 2023-11-12 Angular SSR on Docker #Angular #Docker 2023-10-24 チームを対象として見る #チーム #雑
Angular 2 の RC が出たので試しにコンポーネントを書いてみます。 インスト―ル @angular/ で始まるのが Angular2 本体です。ほかにもいろいろ必要なのでインストールしておきます。 ビルドは Browserify + babelify を使うことにします。 angular2 むけのプリセットがあるので簡単です。 $ npm install -g browserify $ npm install -D babelify babel-preset-es2015 babel-preset-angular2 $ npm install -S @angular/common @angular/compiler @angular/core @angular/platform-browser @angular/platform-browser-dynamic reflect-m
ng-contentとは componentの中に外から要素を注入したいときに使います。angular1でいうところのngTranscludeに近いですね。 とりあえず子要素を注入してみる とりあえず子要素を突っ込むには、突っ込みたい位置に<ng-content></ng-content>を置きます。それだけです。 @Component({ selector: 'foo', template: ` <ng-content></ng-content> `, }) export class Foo { } @Component({ selector: 'bar', template: ` <section> <h3>tag selector(foo)</h3> <ng-content select="foo"></ng-content> </section> <section> <h3>tag
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く