Mastering Web Application
Creating Advanced Forms Template: <form novalidate ng-controller="MainCtrl" name="userForm"> <label>Websites</lab ...
Chapter 5 Outside the ngForm we cannot reference the websiteForm (ngFormController) object on the scope or the websiteForm.websi ...
Creating Advanced Forms You should not use both the ngSubmit and ngClick directives on the same form because the browser will tr ...
Chapter 5 Template: <form name="userInfoForm"> ... <button ng-click="revert()" ng-disabled="!canRevert()">Revert Cha ...
Creating Advanced Forms Summary In this chapter we have seen how AngularJS extends standard HTML form controls to provide a more ...
Organizing Navigation In previous chapters, we've learnt how to fetch data from a back-end, edit those data using AngularJS-powe ...
Organizing Navigation Organizing navigation in a client-side web application using the $route service (with its provider – $rou ...
Chapter 6 The trick is based on the fact that we can modify parts of the URL in a browser's address bar, those after the # chara ...
Organizing Navigation The history API is supported in most of the modern browsers. When it comes to Internet Explorer, it is onl ...
Chapter 6 Lets us to programmatically manipulate different parts of the current URL and have those changes reflected in the bro ...
Organizing Navigation All of these methods are jQuery-style getters. In other words, they can be used to both get and set the va ...
Chapter 6 By doing these configuration changes, we gain manual control over when scrolling takes place. We can trigger scrolling ...
Organizing Navigation Providing further details on how to configure different servers is beyond the scope of this book, but ther ...
Chapter 6 Structuring pages around routes Before we dive into code samples, we should note that in a typical web application the ...
Organizing Navigation Mapping routes to URLs Having a simple routing structure in place isn't enough. We need to synchronize the ...
Chapter 6 The missing bits in the handcrafted navigation The ad-hoc solution presented here is not very robust, and should not b ...
Organizing Navigation In AngularJS, routes can be defined during the application's configuration phase using the $routeProvider ...
Chapter 6 With ng-view, this can be rewritten as follows: <div class="container-fluid" ng-view> <!-- Route-dependent co ...
Organizing Navigation Defining default routes The default route can be configured by calling the otherwise method, providing a d ...
Chapter 6 Let's consider a partial providing a screen for editing a user's data: <div ng-controller="EditUserCtrl"> <h1 ...
«
5
6
7
8
9
10
11
12
13
14
»
Free download pdf