Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 5th, 2015, 05:42 PM
Registered User
 
Join Date: Aug 2015
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default problems with Ubuntu 14.04 LTS

Browser:

Firefox 39.0
Mozilla Firefox for Ubuntu
canonical - 1.0

book page 28
app/views/templates/addstock-modal.html line 17-18
Code:
              ng-model="newStock.company"
              ng-options="company as company.label for company in companies"
In my version of Firefox, this code has the effect of setting the value of company.label to the $scope variable property newStock.company instead of a reference to the company object.

After debugging, determined that this operation works correctly in Chrome.

So much for Test once, run everywhere. What can I learn from this experience? Is the Firefox problem something that gets reported to the AngularJS team? Have the book examples been tested in any Linux environments, and if so, what is the recommended browser?

Last edited by tqisjim; August 5th, 2015 at 05:47 PM..
 
Old August 8th, 2015, 06:59 AM
Authorized User
Points: 130, Level: 2
Points: 130, Level: 2 Points: 130, Level: 2 Points: 130, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2015
Posts: 18
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I noticed some oddities with Firefox but moved on and used chrome as it's a learning exercise.

Looking at online example http://www.stockdog.io/#/dashboard the initial load of the page(refresh) with firefox give little errors like "Data column(s) for axis #0 cannot be of type string" on the right hand pie chart. Also modals fire the default event and leave ghosted incorrect validation errors hovering after modal has closed. Adding stocks to a watchlist is just a disaster zone though...

I believe the main reason is that the versions used in the examples are outdated. If you clone (npm install, bower install) the updated example that I've posted on this forum then firefox functions correctly. The only thing I have not done is looked into the ghosting of the validation error:

http://i.imgur.com/4mCMBDj.png

I'd recommend that you continue with chrome, learn the lessons and move on. I suggest moving onto meanjs.org flavour of the mean stack and you can apply what you've learned.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Python-oriented programming editor for Linux Ubuntu 11.04 Eduardo Tarik BOOK: Beginning Python: Using Python 2.6 and Python 3.1 1 March 24th, 2013 01:28 PM
Ruby on Rails install for ubuntu 12.04 BernieB BOOK: Ruby on Rails for Microsoft Developers 0 February 18th, 2013 12:01 AM
how to install php,apache and mysql on ubuntu 8.04 ladbam BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 April 26th, 2009 02:33 PM
Chaper 14 - over $1000 problems ftb_tx BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 November 21st, 2004 09:15 PM
Chapter 14 page 580 Problems with example john_reeve41 BOOK: Beginning ASP 3.0 3 February 4th, 2004 10:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.