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?