Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AngularJS and Django - Meetup Django CH #19
Search
Gregory Favre
January 23, 2014
Programming
2
180
AngularJS and Django - Meetup Django CH #19
What is AngularJS, how is it different from django and how can they combine.
Gregory Favre
January 23, 2014
Tweet
Share
More Decks by Gregory Favre
See All by Gregory Favre
Déploiement d'un projet Django
gfavre
0
33
Other Decks in Programming
See All in Programming
Composerが「依存解決」のためにどんな工夫をしているか #phpcon
o0h
PRO
1
110
A comprehensive view of refactoring
marabesi
0
970
たった 1 枚の PHP ファイルで実装する MCP サーバ / MCP Server with Vanilla PHP
okashoi
0
140
AIエージェントはこう育てる - GitHub Copilot Agentとチームの共進化サイクル
koboriakira
0
200
無関心の谷
kanayannet
0
180
XSLTで作るBrainfuck処理系
makki_d
0
210
iOSアプリ開発で 関数型プログラミングを実現する The Composable Architectureの紹介
yimajo
2
210
git worktree × Claude Code × MCP ~生成AI時代の並列開発フロー~
hisuzuya
0
160
AWS CDKの推しポイント 〜CloudFormationと比較してみた〜
akihisaikeda
3
290
設計やレビューに悩んでいるPHPerに贈る、クリーンなオブジェクト設計の指針たち
panda_program
3
280
アンドパッドの Go 勉強会「 gopher 会」とその内容の紹介
andpad
0
250
今ならAmazon ECSのサービス間通信をどう選ぶか / Selection of ECS Interservice Communication 2025
tkikuc
11
2.8k
Featured
See All Featured
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.4k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
32
5.9k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Music & Morning Musume
bryan
46
6.6k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
48
2.8k
The Cult of Friendly URLs
andyhume
79
6.4k
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Become a Pro
speakerdeck
PRO
28
5.4k
The Pragmatic Product Professional
lauravandoore
35
6.7k
Rails Girls Zürich Keynote
gr2m
94
14k
Transcript
https:// www.djangoproject.com/s/img/ logos/django-logo-positive.png A marriage of convenience? —
AngularJS • Full featured Single Page Application framework • Well
documented and widely used Forks (GitHub) 0 1500 3000 4500 6000 Angular.js ackbone Em ber.js Knockout Questions (Stack overflow) 0 6000 12000 18000 24000 Angular.js ackbone Em ber.js Knockout
Key features • MVVM framework 㱺 2-way data binding •
Templating • Dependency injection
Demo Business card template https://gist.github.com/gfavre/8594894
MVVM $scope View Controller Django: template Django: view Django: context
+ forms Routes Django: urls.py Django: app Module
Integration with Django • AngularJS does not provide a ORM
• AngularJS and Django will clash: • templates: {{ }} • urls.py vs routes • Different philosophies / coding practices
Solution Angular django-rest-framework or tastypie Django DB JSON
Tips ! • Template symbol clash app.config(function($interpolateProvider{ $interpolateProvider.startSymbol(‘{%’); $interpolateProvider.endSymbol(‘%}’); }]);"
• Minify problem .controller('ctrl1', ["$scope", function($scope){…}
Not solved yet • i18n (same .po?) • urls are
hardcoded in my js
Demo More complex UI https://github.com/gfavre/sportfac