Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > BOOK: Professional AngularJS
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional AngularJS
This is the forum to discuss the Wrox book Professional AngularJS by Valeri Karpov, Diego Netto; ISBN: 978-1-118-83207-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional AngularJS section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 15th, 2016, 12:11 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2016
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Property 'stocks' is undefined in watchlist.js

Hi,

I am on page 35 now and am struggling with corrections and work-arounds everyone had to go through up till now. Last two were:
  1. Replace ng-options with bs-options in l.19 of addstock-modal.html (ng-options requires 'select' element issue)
  1. Replace _.contains with _.includes in l. 13 of main.js (lodash bug)

The app is somewhat working as expected in Firefox, but I am getting this error in Chrome:

Quote:
angular.js:13920 TypeError: Cannot read property 'stocks' of undefined
at new <anonymous> (http://localhost:9000/scripts/contro...hlist.js:15:37)
at Object.instantiate
That line in watchlist.js is this:
Quote:
$scope.stocks = $scope.watchlist.stocks;
Also when navigating to a watchlist this is the url in the browser:
On the watchlist page I get
Quote:
{{watchlist.description}}
in the .panel-heading.

Lastly the add-stock modal is not opening when clicking on the + button. All that functions in Firefox.

Thank you in advance for your consideration and attention.

Last edited by vasigorc; September 15th, 2016 at 12:16 AM.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
data.js:14 Uncaught TypeError: Cannot read property 'id' of undefined bholar Javascript 0 June 30th, 2016 06:39 AM
solution for adding new stocks and displaying modal PuX BOOK: Professional AngularJS 0 January 29th, 2016 02:15 PM
chp 01, get[property name] and set[property name] sandeepgreaternoida BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 0 May 12th, 2009 02:12 AM
Ajax Cart update Undefined Property modelreject BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 1 March 16th, 2009 11:04 AM



All times are GMT -4. The time now is 01:47 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.