Data-oriented Development with Angularjs

Data-oriented Development with Angularjs

Language: English

Pages: 129

ISBN: 1784398055

Format: PDF / Kindle (mobi) / ePub


Write DSLs for your user interface code using AngularJS directives and add real-time capabilities to your applications using AngularFire's three-way data binding with Firebase

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.

What You Will Learn

  • Experience the power of two-way data binding using AngularJS and three-way data binding using Firebase
  • Use dependency injection in AngularJS
  • Get the $http and $resource services to work with REST APIs
  • Realize the full power of AngularJS by writing custom elements, attributes, and so on, using directives
  • Create real-time apps using Firebase and AngularJS
  • Discover the benefits and uses of Node.js, Yeoman, Yo Angular generator, Grunt, and Bower
  • Get to grips with the basics of Git and use Git flow for a more productive Git branching workflow

In Detail

AngularJS is one of the most popular JavaScript frameworks used to write single page applications and is suitable for developing large-scale enterprise applications. With Firebase, you can easily store and sync data in real time. It has libraries for all the major web and mobile platforms (including AngularJS) and bindings for the most popular frameworks (such as Node.js).

Data-oriented Development with AngularJS is a systematic learning guide that covers important AngularJS concepts such as data binding, dependency injection, directives, and so on. It also covers the basics of Firebase and three-way data binding with AngularFire. You'll be able to create a small project and build a real-time application using Firebase and AngularJS. This project uses most of the concepts and best practices learned in the book so that you can apply the very same principles in real-world AngularJS development.

Learning Drupal 6 Module Development: A practical tutorial for creating your first Drupal 6 modules with PHP

HTML5 Cookbook

HTML5 Geolocation

Predictive Analytics for Dummies

 

 

 

 

 

 

 

 

 

 

 

baseApiPath + 'employees/:id'; var Employee = $resource(employeeApiPath, { 'update': { method: 'PUT' [ 28 ] www.it-ebooks.info Chapter 2 } }); return { Employee: Employee }; } ]); [resource-ex\app\scripts\employee.svc.js] We inject the $resource service in employeeSvc. Our employee resource is available at /api/employees, so you may guess the various RESTful methods and the corresponding URLs. Finally, we return the Employee resource. Also, note that by default, the update method

transclude: true, scope: { employee: '=info' }, templateUrl: 'employee.tpl.html' }; }); [Chapter3\transclude-ex\employee.dir.js] First, we are specifying transclude: true which allows the directive to wrap any content inside it and finally the directive template as follows: This content comes from the directive.

Name-

{{employee.name}}

Age-

{{employee.age}}

of your own servers, or you can use one of the hosted solutions; and GitHub (available at https://github.com/) and Bitbucket (available at https://bitbucket.org/) are two of the widely used free hosted solutions. With the free GitHub option, you can only have public repositories (meaning anyone with access to the Internet can view and download your code). If you want to keep your repositories private, then you'll have to buy one of their paid plans. However, the free version of Bitbucket lets you

now they are called the VS Community (available at https://www.visualstudio.com/en-us/ products/visual-studio-community-vs). It supports coding in C++, Python, and HTML5 (along with Microsoft languages) and for Node.js and JavaScript too. So, this IDE is an excellent choice for people who're already used to VS. [ 121 ] www.it-ebooks.info Editors and IDEs Eclipse Eclipse (available at http://eclipse.org/) is one of the most popular editors for folks from the Java land. Eclipse has a huge

the sake of consistency, it's always advisable to agree on certain naming conventions and best practices to be followed for any important projects. As discussed in Appendix A, Yeoman, tools such as Yeoman (http://yeoman.io/) help with the scaffolding and setting up of the initial folder structure. Similarly, code beautifiers available in various IDEs help in arranging the code in a single file to follow accepted norms with spaces, tabs, new lines, and so on. You've got a taste of some of the

Download sample

Download