REST APIとAngularJSを使って、WordPressの投稿を編集できるSPA(Single Page Application)を作る「AngularJSとREST APIでWordPressのSPA化を先取りしてみた!」の続きです。 クライアント Yeomanを使ってAngularアプリのボイラープレートを制作します。このアプリはngCookiesモジュールを使ってクッキーを取得し、簡単なフォームを表示し、ログインユーザーが正しいと認証されたら、$httpモジュールを使って投稿を取得、編集します。 APIを呼び出すためにAngular WP APIライブラリを入れられることを覚えておいてください。しかし、シンプルにするため、またWordPressにはどのようなものであれ組み込めるということを示すためにデフォルトの$httpサービスを使います。カスタマイズしたAjaxコールも使え
Angular2でフォームのバリデーションチェック、動的にCSSの追加を行い、エラー時に色を変えたり、メッセージを表示する方法をまとめました。 ※Angular2の2.0.0版、TypeScriptを使って確認したものです。(デモはv4.4.3、v2.0.0で動作確認) ※目次をクリックすると目次の下部にコンテンツが表示されます。 1.FormsModuleのインポート 2.NgModelディレクティブを使ったシンプルなフォーム作成例(バリデーションチェックなし) 3.バリデーションチェック、動的にCSS追加 4.フォームの作成方法 5.デモ Angular2のフォームの機能を使用する場合、別途フォームのモジュールをインポートする必要があります。 一般的なAngular2のフォーム機能を使用する場合、FormsModuleをインポートします。 ※ダイナミックフォームを使用する場合は、Rea
This article has been updated to the latest version Angular 17 and tested with Angular 16. The content is likely still applicable for all Angular 2 + versions. Angular brings many new concepts that can improve our JavaScript applications. The first new concept to Angular is the use of Observables. Observables are a proposed feature coming to the JavaScript specification. I won't go in depth into O
Stay Relevant and Grow Your Career in TechPremium ResultsPublish articles on SitePointDaily curated jobsLearning PathsDiscounts to dev toolsStart Free Trial7 Day Free Trial. Cancel Anytime. Key Takeaways Utilize Angular CLI to swiftly initialize and scaffold a new Todo application, simplifying the setup process. Define a Todo class in TypeScript to manage individual todo items, emphasizing propert
なお、本連載ではAngularJSそのものに関しては解説しませんので、専門書として『AngularJSアプリケーションプログラミング』、姉妹連載「AngularJSではじめるJavaScriptフレームワーク開発スタイル」などを併せて参照してください。 はじめに 本稿は、第10回に続いての小ネタ編。これまでの回で取りこぼした小粒なライブラリとして、以下のものを紹介します。 UI Layout:マウスドラッグでサイズ変更できる可変パネルを実装 ngCSV:オブジェクト配列をCSV形式のファイルに変換 Angular Count-to:カウントダウン/アップ機能を実装 対象読者 AngularJSについて基本的な概念を理解している方 AngularJSで利用できる拡張モジュールに興味がある方 検証環境 この記事では、以下の環境でサンプルの動作を確認しています。 AngularJS 1.5.7
npm verb pkgid angular-phonecat@0.0.0 npm verb cwd /Users/*/angular-phonecat npm ERR! Darwin 14.3.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "protractor" npm ERR! node v0.12.6 npm ERR! npm v2.11.2 npm ERR! code ELIFECYCLE npm ERR! angular-phonecat@0.0.0 protractor: `protractor test/protractor-conf.js` npm ERR! Exit status 100 npm ERR! npm ERR! Failed at the angular-phonecat@0
Angular's new offline compiler was demo'ed at ng-conf day 2 keynote by @robwormald. It generates tree-shakable ES6 code. Four steps are then required: run a tree-shaker to remove ES6 modules not reachable from the entry point, in our demo we showed rollup run a bundler to reduce down the module imports into a declarations in a single file; we showed system.js down-level to ES5 - we showed this wit
React/Angular2時代のUIフレームワーク考──Ionic2、Onsen UI2を語る 白石 俊平(HTML5 Experts.jp編集長) 読者の皆様こんにちは、編集長の白石です。 先日ふとしたきっかけで、本サイトの認定エキスパートでありアシアル株式会社の社長でもある田中 正裕さんと、Web技術について語り合う機会がありました。 ReactやAngular2といった次世代のアプリケーションフレームワークが存在感を増す中で、UIを構築するためのフレームワークはどう進化するのか? これらのアプリケーションフレームワークをベースとしたIonic2やOnsen UI2と言ったUIフレームワークについて、それぞれの立場から語り合ってみました。 (田中さんはOnsen UI2の開発者、白石はIonic2をかなりヘビーに使い倒しています) Progressive Web Apps (PWAp
PrimeNG 10 Begins PrimeTek is thrilled to announce PrimeNG X (v10) that utilizes the brand new PrimeOne Design Architecture, new free Boostrap, Material and PrimeOne Themes with Dark mode alternatives, modern icons via PrimeIcons 4.0, PrimeFlex CSS utilities, significantly improved performance thanks to migration to the OnPush ChangeDetectionStrategy, lighter CSS by using the Angular style apis an
はじめに Angular 2はGoogleとオープンソースコミュニティで開発されているJavaScriptフレームワークで、現行AngularJS(AngularJS 1)の次期バージョンです。2016年8月時点のバージョンは2.0.0-rc.5で、まもなく正式リリースという状況になっています。Angular 2はAngularJS 1に対して多くの変更点があり、コードの記述法も基本的に異なります。 AngularJS 1ではビューとデータモデルを関連付けるデータバインディングや、ディレクティブと呼ばれる独自のHTML記述が利用できました。これらはAngularJSの特徴として真っ先に言及される機能で、Angular 2でももちろん利用できます。しかし記述方法が微妙に異なっており、最初は違和感を感じるかもしれません。 そこで本記事では、Angular 2でデータバインディングやディレクティ
Victor Savkin is a co-founder of nrwl.io, providing Angular consulting to enterprise teams. He was previously on the Angular core team at Google, and built the dependency injection, change detection, forms, and router modules. In this article we will look at three ways to test Angular components: isolated tests, shallow tests, and integration tests. ExamplesFor all the examples we will use a mail
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? Vue.js の作者Evan氏によるVue.jsの紹介スライドで触れられていた「Progressive Framework」の概念が非常に刺さる所があったのでVue.jsの紹介と合わせて、まとめておきます。 本家資料 本稿は下記Evan氏によるスライド資料をベースに、独自解釈のもと意訳したり加筆したりして作成したものです。 Progressive Framework についての解説 2.0の流れも含めたVue.jsの紹介 Progressive Framework 道具と道具のコスト フレームワークはアプリケーションの複雑さを解決するた
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く