(C)We Want to Hear from You s7

(C)We Want to Hear from You s7

<p> AngularJS for .NET Developers in 24 Hours</p><p>Copyright © 2015 Pearson Education, Inc. ISBN: 0-672-33757-6</p><p>Warning and Disclaimer</p><p>Every effort has been made to make this book as complete and as accurate as possible, but no warranty or fitness is implied. The information provided is on an "as is" basis. The author and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this book or from the use of the CD or programs accompanying it.</p><p>When reviewing corrections, always check the print number of your book. Corrections are made to printed books with each subsequent printing.</p><p>First Printing: XXX</p><p>Corrections for November 1, 2015</p><p>Pg Error Correction</p><p>24 Code listing 2.6, typo on line 24 should have a Should be colon instead of a comma. restaurantName: restaurantName, . Currently:</p><p> restaurantName, restaurantName,</p><p>40 The first line of code shouldn’t have a closing The last “]” after the semi-colon should be removed bracket at the end of the line</p><p>42 Inline code sample error. Currently reads: That very last line should be </p><p>Updated 09/28/2012 (function() { })(); angular.module('musicApp') .controller('ArtistController', ['$scope', (there should be a closing parenthesis as the 2nd character, ArtistController]); right before the open and close parenthesis.) function ArtistController($scope) { }; </p><p>}(); </p><p>68 Line 19. The 2nd to last character is missing a closing parenthesis. The very end of the line should be ‘); 94 In the try it yourself, the brackets are incorrect. It should be::</p><p> angular.module('app') .directive('blink', function($interval){ return{ restrict: 'E', transclude: true, link: function(scope, element, attrs){ $interval(function(){ var visibilityState = element.css('visibility') === 'hidden' ? 'visible' : 'hidden'; element.css('visibility', visibilityState); }, 500); } , template: '<span ng-transclude></span>' }; });</p><p>152 Replace with: The last 3 closing brackets with a semi-colon </p><p> after them should not have the semi-colons function create() { /*callable*/ function create() { /*callable*/ }</p><p>}; function update() { /*callable*/ function update() { Updated 09/28/2012 /*callable*/ } }; function remove(){ function remove(){ /*not able to be called from outside the service*/ /*not able to be called from outside the service*/ } };</p><p>Hour Replace with: 10 The following listings in Hour 10 all appear to have the same error. Not sure if this was copy and paste issue, or a formatting error or what. Listing 10.1 superTextbox – an element directive with shared scope</p><p>1: app.module(‘app’) 2: .directive(‘superTextbox’, function(){ Listing 10.1 superTextbox – an element directive with shared 3: return{ scope 4: restrict: ‘E’, 5: template: ‘<input ng-model=”name” on-enter=vm.nameEntered()”>{{name}}’ 1: app.module(‘app’) 6: }; 2: .directive(‘superTextbox’, function(){ 7: }); 3: return{ 4: restrict: ‘E’, 5: template: ‘<input ng-model=”name” on- enter=vm.nameEntered()”>{{name}}’ 6: }; 7: }); Listing 10.2 superTextbox – an element directive with isolate scope</p><p>1: angular.module(‘app’) 2: .directive(‘superTextbox’, function(){ 3: return{ Listing 10.2 superTextbox – an element directive with isolate 4: restrict: ‘E’, scope 5: scope: {}, 6: template: ‘<input ng-model=”name” on-enter=vm.nameEntered()”>{{name}}’</p><p>1: angular.module(‘app’) 7: };</p><p>2: .directive(‘superTextbox’, function(){ 8: }); 3: return{ 4: restrict: ‘E’, 5: scope: {}, 6: template: ‘<input ng-model=”name” on- enter=vm.nameEntered()”>{{name}}’ 7: }; 8: }); </p><p>Updated 09/28/2012</p><p>Listing 10.3 superTextbox – an element directive with isolate scope and passed function</p><p>1: angular.module(‘app’) 2: .directive(‘superTextbox’, function(){ 3: return{ 4: restrict: ‘E’, Listing 10.3 superTextbox – an element directive with isolate 5: scope: { 6: enterFunction: ‘&’ scope and passed function 7: },</p><p>1: angular.module(‘app’) 8: template: ‘<input ng-model=”name” on-enter=“enterFunction()”>{{name}}’</p><p>2: .directive(‘superTextbox’, function(){ 9: }; 3: return{ 10: }); 4: restrict: ‘E’, 5: scope: { 6: enterFunction: ‘&’ 7: }, 8: template: ‘<input ng-model=”name” on- enter=“enterFunction()”>{{name}}’ 9: }; Listing 10.4 superTextbox – an element directive with 10: }); isolate scope and passed function with different names</p><p>1: angular.module(‘app’) 2: .directive(‘superTextbox’, function(){ 3: return{ 4: restrict: ‘E’, 5: scope: { Listing 10.4 superTextbox – an element directive with isolate 6: myFunc: ‘&enterFunction’ 7: }, scope and passed function with different names 8: template: ‘<input ng-model=”name” on-enter=“myFunc()”>{{name}}’ 1: angular.module(‘app’) 9: }; 2: .directive(‘superTextbox’, function(){ 10: }); 3: return{ 4: restrict: ‘E’, 5: scope: { 6: myFunc: ‘&enterFunction’ 7: }, 8: template: ‘<input ng-model=”name” on- enter=“myFunc()”>{{name}}’ Listing 10.5 superTextbox – an element directive with 9: }; isolate scope, passed function with different name, and 10: }); a passed string</p><p>1: angular.module(‘app’) 2: .directive(‘superTextbox’, function(){ 3: return{ 4: restrict: ‘E’, Updated 09/28/2012</p><p>5: scope: { 6: myFunc: ‘&enterFunction’, 7: placeholder: ‘@’ Listing 10.5 superTextbox – an element directive with isolate 8: }, scope, passed function with different name, and a passed string 9: template: ‘<input ng-model=”name” on-enter=“myFunc()” placeholder= “{{placeholder}}”>{{name}} 1: angular.module(‘app’) 10: }; 2: .directive(‘superTextbox’, function(){ 11: }); 3: return{</p><p>4: restrict: ‘E’, 5: scope: { 6: myFunc: ‘&enterFunction’, 7: placeholder: ‘@’ 8: }, 9: template: ‘<input ng-model=”name” on-enter=“myFunc()” placeholder= “{{placeholder}}”>{{name}} 10: }; 11: }); </p><p>Updated 09/28/2012 Corrections for September 7, 2012</p><p>Corrections for XXX, 2012</p><p>Pg Error Correction</p><p>Corrections for XXX, 2012</p><p>Pg Error Correction</p><p>This errata sheet is intended to provide updated technical information. Spelling and grammar misprints are updated during the reprint process, but are not listed on this errata sheet.</p><p>Updated 09/28/2012</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    6 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us