Movatterモバイル変換


[0]ホーム

URL:


Horiguchi Seito, profile picture
Uploaded byHoriguchi Seito
PDF, PPTX7,942 views

超初心者でも大丈夫!AngularJSでフォームページをちょっとリッチに改造してみよう

AngularJS 1.3.1を用いて、フォームページをちょっとリッチにする方法。できるだけ簡単に実装する方法を紹介しています。

Embed presentation

Download as PDF, PPTX
sample Let’s make forms rich by using AngularJS(v1.3.1), for beginners 5 November 2014 ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
Profile ホリグチ セイト Front-End-Engineer 趣味 漫画(いろいろ)、海外ドラマ、lang-8 最近の活動 セブ島行ってきました。 Webサービス開発し始めました。 AngularJS始めました。 ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
3 Prologue やること: AngularJSでフォームページをちょいリッチにしたい。 (主にバリデート機能)できるだけ簡単にしたい。 使うもの: AngularJS 1.3.1 angular-messages.js + bootstrapとか ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
4 ソース Ready : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
5 Ready 1. 公式ページからzipで1.3.xをダウンロード 2. html内にAngularJS用の記述 <html lang=“ja" ng-app=“myApp”> <script src="lib/angular/angular.js"></script> <script src="lib/angular/angular-messages.js"></script> <script src="js/angular/directive.js"></script> 3.ディレクティブを記述 angular.module('myApp', ['ngMessages']); (directive.js) ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
6 Creating バリデート機能を入れてみる ERROR! Name ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
7 Creating バリデート機能を入れてみる 今回使ったディレクティブ ng-messages: ng-messageを囲っておくもの ng-message :エラーメッセージを出すかどうか判定  ng-if    : 条件を設定し、要素を生成&削除する ng-disabled : disabled属性を設定できる ng-model : 相互のデータバインディングを行うように伝える ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
8 Creating バリデート機能を入れてみる 今回使ったバリデーション変数 $error : エラーかどうかを判定する際に使用。 $dirty : 初めにエラー表記を隠すために使用。 $invalid : 入力に抜けがないか全体をチェックするために使用。 ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
9 Creating バリデート機能を入れてみる 今回使ったTag属性 novalidate: ブラウザ側でのバリデーションを止める。formタグに設定。 type   : text,email,urlなど。inputタグに設定。 name : バリデート対象を指定するのに使う。inputタグなどに設定。 required : 必須属性。必須項目の判定に使う。inputタグなどに設定。 ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
<form novalidate name=”sample” class=”form-­‐horizontal”> …… <input type=”text” name=”name” … ng-­‐model=”name” ng-­‐maxlength=”30” required/> …… <div class=“error_box” ng-­‐if=”sample.name.$dirty” ng-­‐messages=“sample.name.$error”> 10 Creating 例)デモのソースから一部抜粋 <div class="popover top error" role="tooltip" ng-­‐message=“required">…</div> <div class="popover top error" role="tooltip" ng-­‐message=“maxlength">… </div> </div> …… </form> ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
11 Conclusion 一部のバリデーション機能だけなら意外とシンプル! (JSはほとんど書かなくてよい) ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
sample ご清聴ありがとうございました ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/

Recommended

PDF
noteをAngularJSで構築した話
PDF
最近、実務に導入してみたフロントエンドの技術8つの良かった点と反省点
PDF
今後のWeb開発の未来を考えてangular jsにしました(拡大版)
PDF
今後のWeb開発の未来を考えてangularJSにしました
PDF
開発ライフサイクルから見たAngularJS
PDF
イベント駆動AngularJS / 今から書くAngular 2.0
PDF
Directiveで実現できたこと
PDF
One-time Binding & $digest
PDF
STORES.jp x AngularJS
PPTX
React Nativeでお絵描きしてみた
PPTX
普段Reactを触ってる僕が Angularを触ってみた感想を共有する
PDF
Angular jsの継続的なバージョンアップ
PDF
AngularJSで業務システムUI部品化
PDF
Front-end package managers
PDF
俺とAngular JS 2
PDF
CSS Living StyleGuide
PDF
Angular2
PDF
これからフロントエンジニアを目指すあなたへ
PDF
LIGでのDocker活用
PPTX
【eLV勉強会】AngularJSでのモバイルフロントエンド開発
PDF
angular X designer - デザイナからみたAngularJS #ten1club
PPTX
ReactでCMSを作ったときにハマったこと
PPTX
Angular js はまりどころ
PPTX
Rnyoutube
PDF
Visual studio 2019 updates pickup!
PDF
AngularJS で ハイスピードSI
PDF
Angular 4がやってくる!? 新機能ダイジェスト
PDF
AngularJSとFluxとRiotJSと
PDF
Sassをはじめからていねいに<概要−基礎編>
PDF
元コンビニ店長の人生を賭けたエンジニア留学

More Related Content

PDF
noteをAngularJSで構築した話
PDF
最近、実務に導入してみたフロントエンドの技術8つの良かった点と反省点
PDF
今後のWeb開発の未来を考えてangular jsにしました(拡大版)
PDF
今後のWeb開発の未来を考えてangularJSにしました
PDF
開発ライフサイクルから見たAngularJS
PDF
イベント駆動AngularJS / 今から書くAngular 2.0
PDF
Directiveで実現できたこと
PDF
One-time Binding & $digest
noteをAngularJSで構築した話
最近、実務に導入してみたフロントエンドの技術8つの良かった点と反省点
今後のWeb開発の未来を考えてangular jsにしました(拡大版)
今後のWeb開発の未来を考えてangularJSにしました
開発ライフサイクルから見たAngularJS
イベント駆動AngularJS / 今から書くAngular 2.0
Directiveで実現できたこと
One-time Binding & $digest

What's hot

PDF
STORES.jp x AngularJS
PPTX
React Nativeでお絵描きしてみた
PPTX
普段Reactを触ってる僕が Angularを触ってみた感想を共有する
PDF
Angular jsの継続的なバージョンアップ
PDF
AngularJSで業務システムUI部品化
PDF
Front-end package managers
PDF
俺とAngular JS 2
PDF
CSS Living StyleGuide
PDF
Angular2
PDF
これからフロントエンジニアを目指すあなたへ
PDF
LIGでのDocker活用
PPTX
【eLV勉強会】AngularJSでのモバイルフロントエンド開発
PDF
angular X designer - デザイナからみたAngularJS #ten1club
PPTX
ReactでCMSを作ったときにハマったこと
PPTX
Angular js はまりどころ
PPTX
Rnyoutube
PDF
Visual studio 2019 updates pickup!
PDF
AngularJS で ハイスピードSI
PDF
Angular 4がやってくる!? 新機能ダイジェスト
PDF
AngularJSとFluxとRiotJSと
STORES.jp x AngularJS
React Nativeでお絵描きしてみた
普段Reactを触ってる僕が Angularを触ってみた感想を共有する
Angular jsの継続的なバージョンアップ
AngularJSで業務システムUI部品化
Front-end package managers
俺とAngular JS 2
CSS Living StyleGuide
Angular2
これからフロントエンジニアを目指すあなたへ
LIGでのDocker活用
【eLV勉強会】AngularJSでのモバイルフロントエンド開発
angular X designer - デザイナからみたAngularJS #ten1club
ReactでCMSを作ったときにハマったこと
Angular js はまりどころ
Rnyoutube
Visual studio 2019 updates pickup!
AngularJS で ハイスピードSI
Angular 4がやってくる!? 新機能ダイジェスト
AngularJSとFluxとRiotJSと

Viewers also liked

PDF
Sassをはじめからていねいに<概要−基礎編>
PDF
元コンビニ店長の人生を賭けたエンジニア留学
PDF
レスポンシブ基礎 ~Webサイトをレスポンシブに する方法とそのメリット~
PDF
レスポンシブWebデザインの基礎と,コーディング実習:先生小川 裕之
PDF
今日から使える! HTML/CSS/JSの シンプルテクニック15選
PDF
Css Architecture for the future 未来を見据えるCSS設計
PDF
CSSフレームワークとCMS+RWDテンプレでレスポンシブWebデザインサイトを構築しよう
PDF
HTML5など社内勉強会 Vol.1 - HTML, CSS, HTML5
PDF
Lets start-react
PDF
UX白書には本当は何が書かれているか
Sassをはじめからていねいに<概要−基礎編>
元コンビニ店長の人生を賭けたエンジニア留学
レスポンシブ基礎 ~Webサイトをレスポンシブに する方法とそのメリット~
レスポンシブWebデザインの基礎と,コーディング実習:先生小川 裕之
今日から使える! HTML/CSS/JSの シンプルテクニック15選
Css Architecture for the future 未来を見据えるCSS設計
CSSフレームワークとCMS+RWDテンプレでレスポンシブWebデザインサイトを構築しよう
HTML5など社内勉強会 Vol.1 - HTML, CSS, HTML5
Lets start-react
UX白書には本当は何が書かれているか

Similar to 超初心者でも大丈夫!AngularJSでフォームページをちょっとリッチに改造してみよう

PPTX
Let’s angular js!!
PDF
AngularJS 概説
PDF
受託開発でのAngularJS - 第1回AngularJS 勉強会 at LIG
ODP
AngularJSとの危険な関係 by Mario Heiderich - CODE BLUE 2015
PPTX
AngularJSを触ってみた
PPTX
Angular JSを始めよう!
PPTX
AngularJS入門
PDF
20140823 LL diver Angular.js で構築した note に関して
PDF
あの時AngularJSと出会った僕らは
PPTX
20161125 米田 angular_jsを触ってみた
PDF
そろそろ押さえておきたい AngularJSのセキュリティ
PPTX
AngularJSを浅めに紹介します
PDF
HTML5 ビギナーのための AngularJS
PPTX
シンプルな9つのサンプルで学ぶJava Script初心者のためのAngularJS超入門ハンズオン
PDF
第9回Symfony勉強会LT Symfony2 meets AngularJS #symfony_ja
 
PDF
Angular js meets cakephp at cloud on the beach 2014 前夜祭
PDF
3分でわかるangular js
PPTX
とりあえずAngular jsを導入してみませんか
Let’s angular js!!
AngularJS 概説
受託開発でのAngularJS - 第1回AngularJS 勉強会 at LIG
AngularJSとの危険な関係 by Mario Heiderich - CODE BLUE 2015
AngularJSを触ってみた
Angular JSを始めよう!
AngularJS入門
20140823 LL diver Angular.js で構築した note に関して
あの時AngularJSと出会った僕らは
20161125 米田 angular_jsを触ってみた
そろそろ押さえておきたい AngularJSのセキュリティ
AngularJSを浅めに紹介します
HTML5 ビギナーのための AngularJS
シンプルな9つのサンプルで学ぶJava Script初心者のためのAngularJS超入門ハンズオン
第9回Symfony勉強会LT Symfony2 meets AngularJS #symfony_ja
 
Angular js meets cakephp at cloud on the beach 2014 前夜祭
3分でわかるangular js
とりあえずAngular jsを導入してみませんか

超初心者でも大丈夫!AngularJSでフォームページをちょっとリッチに改造してみよう

  • 1.
    sample Let’s makeforms rich by using AngularJS(v1.3.1), for beginners 5 November 2014 ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
  • 2.
    Profile ホリグチ セイト Front-End-Engineer趣味 漫画(いろいろ)、海外ドラマ、lang-8 最近の活動 セブ島行ってきました。 Webサービス開発し始めました。 AngularJS始めました。 ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
  • 3.
    3 Prologue やること:AngularJSでフォームページをちょいリッチにしたい。 (主にバリデート機能)できるだけ簡単にしたい。 使うもの: AngularJS 1.3.1 angular-messages.js + bootstrapとか ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
  • 4.
    4 ソース Ready: https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
  • 5.
    5 Ready 1.公式ページからzipで1.3.xをダウンロード 2. html内にAngularJS用の記述 <html lang=“ja" ng-app=“myApp”> <script src="lib/angular/angular.js"></script> <script src="lib/angular/angular-messages.js"></script> <script src="js/angular/directive.js"></script> 3.ディレクティブを記述 angular.module('myApp', ['ngMessages']); (directive.js) ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
  • 6.
    6 Creating バリデート機能を入れてみるERROR! Name ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
  • 7.
    7 Creating バリデート機能を入れてみる今回使ったディレクティブ ng-messages: ng-messageを囲っておくもの ng-message :エラーメッセージを出すかどうか判定  ng-if    : 条件を設定し、要素を生成&削除する ng-disabled : disabled属性を設定できる ng-model : 相互のデータバインディングを行うように伝える ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
  • 8.
    8 Creating バリデート機能を入れてみる今回使ったバリデーション変数 $error : エラーかどうかを判定する際に使用。 $dirty : 初めにエラー表記を隠すために使用。 $invalid : 入力に抜けがないか全体をチェックするために使用。 ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
  • 9.
    9 Creating バリデート機能を入れてみる今回使ったTag属性 novalidate: ブラウザ側でのバリデーションを止める。formタグに設定。 type   : text,email,urlなど。inputタグに設定。 name : バリデート対象を指定するのに使う。inputタグなどに設定。 required : 必須属性。必須項目の判定に使う。inputタグなどに設定。 ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
  • 10.
    <form novalidate name=”sample”class=”form-­‐horizontal”> …… <input type=”text” name=”name” … ng-­‐model=”name” ng-­‐maxlength=”30” required/> …… <div class=“error_box” ng-­‐if=”sample.name.$dirty” ng-­‐messages=“sample.name.$error”> 10 Creating 例)デモのソースから一部抜粋 <div class="popover top error" role="tooltip" ng-­‐message=“required">…</div> <div class="popover top error" role="tooltip" ng-­‐message=“maxlength">… </div> </div> …… </form> ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
  • 11.
    11 Conclusion 一部のバリデーション機能だけなら意外とシンプル!(JSはほとんど書かなくてよい) ソース : https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/
  • 12.
    sample ご清聴ありがとうございました ソース: https://github.com/seito2014/angularjs-­‐study2-­‐seito デモ  : http://seito2014.github.io/angularjs-­‐study2-­‐seito/

[8]ページ先頭

©2009-2025 Movatter.jp