Angular2でアプリケーションを構築する時に、 親コンポーネントから子コンポーネントを操作したいことが多くあります。 例えば、子コンポーネントの値を取得・変更したい時や、DOMを取得したい時などが挙げられます。 Angular2では、ViewChildren、 ContentChildren を使用することで、 親要素から子要素を参照することができます。 今回はViewChildren、ContentChildren を使用した、子要素の参照方法を紹介します。 ViewChildren とは コンポーネントのテンプレートの中に配置された子要素をViewChildren と呼びます。 使い方は、@ViewChildren もしくは @ViewChild デコレータを @angular/core からインポートして使用します。 @ViewChildren は複数個取得でき、@ViewChi
あなたにとって重要なトピックや同僚の最新情報を入手しましょう最新の洞察とトレンドに関する最新情報を即座に受け取りましょう。 継続的な学習のために、無料のリソースに手軽にアクセスしましょうミニブック、トランスクリプト付き動画、およびトレーニング教材。 記事を保存して、いつでも読むことができます記事をブックマークして、準備ができたらいつでも読めます。
【C89電子書籍】 紙面とは組版が異なり、スマホ・タブレットに最適化したカラー版です。アップデートなどは電子版で対応します JavaScriptoon2(B5相当で152p)はAngular2やWebRTC、WebGLなどの解説記事を収録したWeb技術書です。 あのWebフロントエンド本がパワーアップしてかえってきた!? 今回もWebの最新技術がもりだくさん。これまでの課題を解決したAngular2の新実装の解説、 ブラウザ上で100万パーティクル&60FPSぶっちぎるWebGL、 Splatoonでお馴染みボイスチャットのイカデンワの作者が送るWebRTC解説など 目まぐるしく変わるWebステージでガチバトル! 詳細な目次、本文はサンプルでご確認ください Ready for Angular2 @laco0416 WebRTC~知識ゼロから5日でボイスチャットを作れた技術 @mzsm_j
Edit · Jan 23, 2016 · 9 minutes read · Follow @mgechev JavaScript Angular ViewChildren ContentChildren In this article I’m going to explain the difference between the concepts of view children and content children in Angular. We will take a look at how we can pass access these two different kinds of children from their parent component. Along the content we are also going to mention what the diffe
(追記)2.0に対応しました。(2016/09/15) ここに書いていることは全て自己流のオレオレ環境なのであまり鵜呑みにしないでください。 今回のGitHubリポジトリ→ovrmrw/ovrmrw-ng2-env-20160725 まずは僕のマシン環境から。 Windows 10 64bit or 7 32bit Visual Studio Code (stable) 1.3.1 Node.js 6.3.1 Git 2.8.1 GitHub Desktop (Node.jsはnvm-windowsでインストールしています) Angular2やるならこれぐらいは最低限インストールしておく必要があります。 WindowsにおけるNode.jsの環境構築はWindowsでnpm installの赤いエラーに悩まされているアナタへも合わせてどうぞ。 ~~Node.jsの6系はnode-sassイ
In my meanderings around the world wide interweb, and now especially the angular.io style docs, I find many references to @HostBinding and @HostListener. It seems they are quite fundamental, but unfortunately the documentation for them at the moment is a little sketchy. Can anyone please explain what they are, how they work and give an example of their usage?
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? 7月下旬に、Angular2 Dart版が従来のTypeScript版からコンパイルされたコードベースから独自リポジトリに移行し、専業チームの手でDartに最適化されたものに進化させていくことが発表された。あれから二週間ほど経過し、リポジトリにChangelogやCI等が整備されCommitが増えてきたので、このタイミングでDart Newsの抄訳をし、リポジトリ上の活動から見えるAngular2Dartの開発の動向をまとめてみる。 追記 AngularDartのハイレベルロードマップの草稿が発表されたので抄訳してみた。 http://
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く