Data-oriented Development with AngularJS
eBook - ePub

Data-oriented Development with AngularJS

Manoj Waikar

Partager le livre
  1. 156 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Data-oriented Development with AngularJS

Manoj Waikar

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

About This Book

  • Create powerful custom HTML elements and attributes using AngularJS directives
  • Store and sync data in real time using Firebase
  • Practical working examples to help you apply your knowledge to solve real-world problems

Who This Book Is For

This book helps beginner-level AngularJS developers organize AngularJS applications by discussing important AngularJS concepts and best practices. If you are an experienced AngularJS developer but haven't written directives or haven't created custom HTML controls before, then this book is ideal for you.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Data-oriented Development with AngularJS est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Data-oriented Development with AngularJS par Manoj Waikar en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Computer Science et Web Programming. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2015
ISBN
9781784394196

Data-oriented Development with AngularJS


Table of Contents

Data-oriented Development with AngularJS
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. AngularJS Rationale and Data Binding
Frameworks versus libraries
AngularJS versus server-side MVC frameworks
AngularJS versus other frontend JavaScript frameworks
Why AngularJS?
Data binding
AngularJS Hello World!
Two-way data binding
Collection binding
Routes
Other AngularJS directives
Organizing AngularJS applications
Summary
2. Working with Data
Dependency injection
Filters
Promise
The $q service
The $http service
The $resource service
Node.js and Express-based API sample
A better $http service
Summary
3. Custom Controls
Directives
Defining a directive
Directive compilation phases
Normalization
Directive types
Directive scopes
Writing directives
Custom attributes
Custom elements
Isolate scopes
The =attr option in the scope
The @attr option in the scope
The &attr option in the scope
Transclusion
Custom classes
Directives that manipulate the DOM
Communication between directives
Summary
4. Firebase
Persistence
What is Firebase?
Firebase – benefits and why to use?
Firebase use cases
Apps with Firebase as the only backend
Existing apps with some features powered by Firebase
Both client and server code powered by Firebase
Firebase is the API for your product
Getting started with Firebase
Installing Firebase
Structuring data
Denormalizing data
AngularFire
Summary
5. Getting Started with AngularFire
AngularFire
Synchronized arrays with $firebaseArray()
Real-time applications
Synchronized objects with $firebaseObject()
Three-way data binding
Authentication
Summary
6. Applied Angular and AngularFire
Firebase anonymous authentication
Difference between a factory and a service
Summary
A. Yeoman
NPM
Yeoman
Grunt
Bower
B. Git and Git Flow
Initial Git setup
Using Git
Using Git flow
GitHub and Bitbucket
C. Editors and IDEs
Emacs
Vim
Sublime Text
Visual Studio and Visual Studio Express
Eclipse
Brackets
WebStorm
Index

Data-oriented Development with AngularJS

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: April 2015
Production reference: 1240415
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78439-805-7
www.packtpub.com

Credits

Author
Manoj Waikar
Reviewers
Mark Coleman
Pavlo Iuriichuk
Mourad Mourafiq
Arvind Ravulavaru
Commissioning Editor
Kunal Parikh
Acquisition Editor
Meeta Rajani
Content Development Editor
Arwa Manasawala
Technical Editor
Shruti Rawool
Copy Editors
Heeral Bhat
Pranjali Chury
Tani Kothari
Sonia Mathur
Karuna Narayanan
Kriti Sharma
Project Coordinator
Danuta Jones
Proofreaders
Simran Bhogal
Bridget Braund
Safis Editing
Indexer
Mariammal Chettiyar
Production Coordinator
Arvindkumar Gupta
Cover Work
Arvindkumar Gupta

About the Author

Manoj Waikar has been developing software for close to 15 years now. He started writing desktop applications in VB6 and has used almost all of the .NET and C# versions to write enterprise software. His urge to improve his craft led him to explore, and eventually use, open source frameworks such as NHibernate, Spring.NET, NUnit, Moq, and so on, which, until a few years ago, were not commonly used in the .NET world.
He admires RoR (Ruby on Rails) and thanks Microsoft for ASP.NET MVC and Web API. Due to some of the limitations of server-side MVC frameworks, he introduced AngularJS in one of the UK-based start-ups that he worked with and used it to great success.
He is interested in functional programming and loves Clojure (a Lisp for the JVM) and ClojureScript (which compiles to JavaScript). Of late, he has also started exploring F# and considers it the best language for the .NET platform.

Acknowledgments

First and foremost, I would like to thank my wife, Aboli, for always being there for me and my family. Although I piss her off sometimes with my incessant questions, I admire her decision-making skills and insightful answers. Hopefully, I'll learn from her one day. She even let me take almost a year off from work while she was the earning partner. I hope to return the favor soon. Thanks also to my kids for being patient with me while I was writing and for doing their own studies too—I'll certainly spend more time with them after this book is done.
I am lucky to have not just loving and supportive parents but also a caring and trustworthy extended family, because of my upbringing in a joint family (which is rare these days). Life would certainly be less fun without my uncles, aunts, and dear cousins. Thanks to my many friends for sharing their good (and bad) thoughts, learning, and insights.
Thanks are also due to all my teachers from the schools and colleges I attended for sharing their knowledge and making me capable in this journey of life. Special thanks to my illustrious uncle, Dr. Ganesh Tarey, for teaching me mathematics and physics (the two dreaded subjects) and my brilliant cousin, Anil Bhatnagar...

Table des matiĂšres