By Sandeep Panda
What will I learn?
In this functional and fun-to-read publication, you'll examine the basics of AngularJS, akin to scopes, modules and controllers. You'll then circulation directly to extra subtle concepts, together with utilizing directives, filters and expressions to construct an entire unmarried web page net application.
Discover the ability 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 an entire operating unmarried web page web publication software as you learn
And even more
Read or Download AngularJS: Novice to Ninja PDF
Topics and features:
* Describes the production and use of HTML files, together with tables, varieties, lists, frames, and cascading type sheets
* With personal home page, extends programming basics to incorporate interpreting and writing server-based documents, command-line interfaces, and an creation to GD graphics
* Appendices contain lists of ASCII and HTML specified characters, and a short creation to utilizing a “pseudocode” method of organizing suggestions to computing problems
* encompasses a word list and an intensive set of programming exercises
- Modeling Semantic Web services : the web service modeling language
- Building Scalable Apps with Redis and Node.js
Additional resources for AngularJS: Novice to Ninja
Figure 2-10. Mounting the component As you see, two methods were called without any arguments. The method component DidMount() is usually the more interesting of the two. getDOMNode() if you need, for example, to get the dimensions of the component. You can also do any sort of initialization work for your component now that your component is alive. Next, what happens when you type “s” to make the text “Bobs”? info | 31 Figure 2-11. Updating the component The method componentWillUpdate(nextProps, nextState) is called with the new data that will be used to rerender the component.
Props as you see fit to build your UI in your render() method. But sometimes you want to take a value passed to your component and use it to construct the initial state. There’s nothing wrong with this, only that the callers of your component may expect the property (text in the example above) to always have the latest value and the example violated this expectation. g. calling the property something like defaultText or initial Value instead of just text. info Chapter 4 illustrates how React solves this for its own implementa‐ tion of inputs and textareas where people may have expectations coming from their prior HTML knowledge.