By Sandeep Panda
What will I learn?
In this sensible and fun-to-read ebook, you'll study the basics of AngularJS, akin to scopes, modules and controllers. You'll then circulation directly to extra subtle strategies, together with utilizing directives, filters and expressions to construct a whole unmarried web page internet application.
Discover the facility of AngularJS's two-way information binding
Using AngularJS and TDD
Get to grips with modules, scopes, and controllers
Enhance your HTML with directives
Build a whole operating unmarried web page web publication program as you learn
And even more
Read or Download AngularJS: Novice to Ninja PDF
Ruby is a fully natural object-oriented scripting language written in C and designed with Perl and Python services in brain. whereas its roots are in Japan, Ruby is slowly yet without doubt gaining floor within the US. The aim of Yukihiro Matsumoto, author of Ruby and writer of this booklet, is to include the strengths of languages like Perl, Python, Lisp and Smalltalk.
This e-book is an in-depth creation to Erlang, a programming language perfect for any state of affairs the place concurrency, fault tolerance, and quick reaction is vital. Erlang is gaining frequent adoption with the appearance of multi-core processors and their new scalable method of concurrency. With this consultant you will methods to write advanced concurrent courses in Erlang, despite your programming history or event.
- WebStorm Essentials
- Sams Teach Yourself Perl in 24 Hours (3rd Edition)
Extra resources for AngularJS: Novice to Ninja
Module() with two arguments (the last argument for dependencies) AngularJS creates a new module. module() with a single argument (just the module name), AngularJS retrieves the already created module and returns it. Isn't that great? ) returns a reference to the module itself. So, the calls can be chained together, and you can keep attaching different components in this way. module() should specify the second argument. module() should just pass a single argument which retrieves an already created module.
Now we've discussed the basics, let's modify the previous code accordingly. Again we will use Angular Seed structure to bootstrap development. js. controllers' ]); myApp is our main module that's loaded when the app bootstraps. This module de- pends on the controllers module which has the FinanceController controller, which will be created next. controllers', ). 01; }; }); A $scope object is passed to the FinanceController constructor function. We set different properties like salary and percentage on this scope, which are made available to the view.
UI Updates Two-way data binding is definitely a big deal in AngularJS. We have seen just basic two-way data binding so far. But beware—there are pitfalls. Sometimes just changing a model's value doesn't update the UI. We need to use some special tricks in those cases which will be explored in next chapter. To summarize, here is what the two-way data binding feature has to offer: 1. Keeps the view and model data in sync in both directions. 2. Provides a great declarative binding syntax to express what our app does.