These are chat archives for canjs/canjs

Sep 2015
Sep 17 2015 00:02

@kiwi1342 your 2nd example, myTest would refer to the same list in all instances of VM whereas your 1st example would create a separate list for each instance of VM. If you want separate lists, I would use the define plugin... here is basically your 1st example:

define: {
  myTest: {
    Value: Model.List

using init just gives you more control over how your properties are defined but I've never found a need for it with the define plugin covering a so many use cases