Book Image

AngularJS by Example

By : Chandermani
Book Image

AngularJS by Example

By: Chandermani

Overview of this book

<p>AngularJS makes web JavaScript web development less painful and more organized – it’s unsurprising that today it’s one of the most popular tools in web development.</p> <p>AngularJS by Example helps you get started with this essential web development framework quickly and easily, guiding you through AngularJS by showing you how to create your own real-world applications. By adopting this approach, you can bridge the gap between learning and doing immediately, as you follow the examples to learn the impressive features of Angular and experience a radically simple–and powerful–approach to web development.</p> <p>You’ll begin by creating a simple Guess the Number game, which will help you get to grips with the core components of Angular, including its MVC architecture, and learn how each part interacts with one another. This will give you a solid foundation of knowledge from which you can begin to build more complex applications, such as a 7 minute workout app and an extended personal trainer app. By creating these applications yourself, you will find out how AngularJS manages client-server interactions and how to effectively utilize directives to develop applications further. You’ll also find information on testing your app with tools such as Jasmine, as well as tips and tricks for some of the most common challenges of developing with AngularJS.</p> <p>AngularJS by Example is a unique web development book that will help you get to grips with AngularJS and explore a powerful solution for developing single page applications.</p>
Table of Contents (15 chapters)
AngularJS by Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Tools


Tools make our lives easy and we are going to share some tools that will help you with different aspects of AngularJS development, from code writing to debugging:

  • Batarang: We have mentioned and used Batarang earlier while working with scopes. Batarang is an excellent debugging tool for an AngularJS application and we have explored only a few features of this awesome Chrome extension. We can install it from the Chrome web store (https://chrome.google.com/webstore/category/apps).

  • Browser Developer Console: All current browsers have excellent capabilities when it comes to JavaScript debugging. Since we are working with JavaScript, we can put breakpoints, add a watch, and do everything that is otherwise possible with JavaScript. Remember, a lot of errors with code can be detected just by looking at the browser's console window.

  • jsFiddle and Plunker: jsFiddle (http://jsfiddle.net/) and Plunker (http://plnkr.co/) are excellent playgrounds for trying out HTML, CSS, and JavaScript code. These tools also have great versioning and sharing capabilities that can come in handy if we want someone's help.

  • IDE extensions: Many of the popular IDEs on the market have plugins/extensions to make AngularJS development easy for us. Examples include: Sublime Text package (https://github.com/angular-ui/AngularJS-sublime-package), JetBrain WebStorm 8 (http://blog.jetbrains.com/webstorm/2014/03/welcome-webstorm-8/), and TextMate bundle (https://github.com/angular-ui/AngularJS.tmbundle). Search for support for your specific IDE on the Internet to see if there is some helpful stuff available.