Mastering Web Application
Organizing Navigation The first approach is the default one. For a route with both the templateUrl and the controller properties ...
Chapter 6 Once all these route-specific variables (defined in the resolve section) are resolved, they are injected into the rout ...
Organizing Navigation We need to decide what should happen if a user with the specified identifier doesn't exist. One reasonable ...
Chapter 6 One route corresponds to one rectangle on the screen As you now know, the ng-view directive is used to indicate the DO ...
Organizing Navigation contentUrl:'admin/users/users-edit.tpl.html', menuUrl:'admin/menu.tpl.html', controller:'UsersEditCtrl', } ...
Chapter 6 This navigation scheme forms a visual hierarchy that could be depicted as follows: NAVIGATION BAR PROJECT INFO SPRINT ...
Organizing Navigation Creating clickable links AngularJS comes pre-bundled with the a directive, which prevents default actions ...
Chapter 6 If we choose to use the hashbang mode we must create links as follows (notice the # character): <a ng-href="#/admin ...
Organizing Navigation Spreading route definitions among several modules With AngularJS, we are not forced to define all the rout ...
Chapter 6 A custom provider based on this idea will probably vary from one application to another, so we are not providing detai ...
Organizing Navigation The $route service (and its provider – $routeProvider) allows us to structure navigation in applications w ...
Securing Your Application In any web application, we must ensure that sensitive data and actions are not available to unauthoriz ...
Securing Your Application Providing server-side authentication and authorization One thing that is common for all client/server ...
Chapter 7 POST /logout: This message logs out the current user by removing the authentication cookie. GET /current-user: This m ...
Securing Your Application We could delete templates from the $templateCache service, either selectively or even completely at va ...
Chapter 7 Implementing this on the server is dependent on your choice of back-end technology, and is beyond the scope of this bo ...
Securing Your Application And the markup fragment looks as follows: <p ng-bind="msg"></p> The rendering process will ...
Chapter 7 angular.module('expressionsEscaping', ['ngSanitize']) .controller('ExpressionsEscapingCtrl', function ($scope) { $scop ...
Securing Your Application Preventing cross-site request forgery In any application where the server must trust who the user is, ...
Chapter 7 security $dialog login-toolbar login-form This diagram shows two user interface elements, the login-toolbar and login- ...
«
6
7
8
9
10
11
12
13
14
15
»
Free download pdf