viewModel differences?

56 views
Skip to first unread message

leeb...@gmail.com

unread,
May 8, 2013, 7:18:51 AM5/8/13
to knock...@googlegroups.com
being new to knockout could some tell me the differences and adavntages of using the view model in these two ways I see frequently:

var viewModel = {
   //code
}


or

var viewModel = function() {
  //code

}


With the second I see it often but arent ko observables functions any ways?

rpn

unread,
May 9, 2013, 11:22:42 AM5/9/13
to knock...@googlegroups.com
Hi Lee-

Hope that helps a bit.

Thanks-
Ryan
Reply all
Reply to author
Forward
0 new messages