Solved

KnockoutJS Array

Posted on 2012-12-31
3
363 Views
Last Modified: 2013-01-07
Please checkout this JS Bin
http://jsbin.com/iqikuf/3/edit


When the below is run in the console, the result shown makes sense to me.
statement: vd.tools.push(dataItem);
resuelt: 2

But why do we get the below results when run in the console?
statement: vd.tools.length
result: 0
0
Comment
Question by:GriffisJ
  • 2
3 Comments
 
LVL 9

Expert Comment

by:Sar1973
ID: 38734288
Does the command .isNullo exist? I knew .isNull instead...and .IsNullOrEmpty
0
 

Accepted Solution

by:
GriffisJ earned 0 total points
ID: 38739074
parentheses needed

vd.tools().length
0
 

Author Closing Comment

by:GriffisJ
ID: 38750316
simple concise answer
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question