2018/6/26 市ヶ谷Geek★Night #18にて発表した資料です。
angular-ui-router は、AngularJS のルーティング、およびビュー分割プラグインです。 セットアップ CDNJSを利用して、必要なファイル angular.js、angular-ui-router.jsを読み込みます。 <!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.1/angular.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.2.15/angular-ui-router.js"></script> <title>myApp</ti
© 2017 Google Licensed under the Creative Commons Attribution License 3.0. このページは、ページトップのリンク先のAngularJS公式ドキュメント内のページを翻訳した内容を基に構成されています。 下記の項目を確認し、必要に応じて公式のドキュメントをご確認ください。 もし、誤訳などの間違いを見つけましたら、 @tomofまで教えていただければ幸いです。 AngularJSの更新頻度が高いため、元のコンテンツと比べてドキュメントの情報が古くなっている可能性があります。 "訳注:"などの断わりを入れた上で、日本人向けの情報やより分かり易くするための追記を行っている事があります。
概要 Djangoで標準のViewやDjango REST frameworkなどで作成したエンドポイントに対して、AngularJSのHttpProviderでpostすると、403エラーが返ってくる。 $http.post('/api/entries', {'title': '日記', 'body': '今日はいい天気です'}) 原因 これは、AngularJSを使っていることはあまり関係なく、DjangoのCSRF Protectionを上手く回避できていないのが原因。 CSRF Tokenを格納するRequest Headerの値が、AngularJSがデフォルトで使用する値と、Djangoが認識する値で違っているのに由来しているらしい。 以下のドキュメントを読むと、Djangoでは、Ajaxリクエストをするときに、csrftokenの値をX-CSRFTokenというヘッダ名で送信
Intro Material is a Google Material Design inspired admin template built with Bootstrap and AngularJS. It uses Sass CSS which makes it easy to modify Features 2 in 1, both admin template & landing page. Google Material Design inspired admin/dashboard template. Clean JS Code – simple and clean JavaScript code Responsive Design – mobile-ready design adopt to any device Web App – single page applicat
こんにちは、サーバーサイドのエンジニアをやっているoinumeです。今回は昨年8月ぐらいから作っていたAmeba Owndというサービスで行ったSEO対策について紹介します。 AmebaOwndって?ブログ機能を備えたスタイリッシュなデザインのWebサイトを簡単に作成できるサービスです。 香川真司オフィシャルサイトスターバックス コーヒー オフィシャルブログなどのサイトがAmeba Owndを利用して作られています。 アーキテクチャユーザーさんがWebブラウザでアクセスするページについてはAngularJS + REST API(Nginx + Go)で作られています。一方でGooglebotなどのクローラーからのアクセスの場合は、受けたリクエストをNginxがPrerender CacheというシステムにProxyして、このPrerender CacheからHTMLを返すようにしています
Learn how to make authentication in your Angular applications simpler and more consistent Photo by Parsoa Khorsand / Unsplash Auth0! Parse.com! Firebase! They are just a few of the so many cool services and libraries that are available today to easily authenticate users in your Angular application. Unfortunately such a rich set of options also come with an equally diverse set of API's: <!-- auth0
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く