DoneJS StealJS jQuery ++ FuncUnit DocumentJS
3.0.0
2.3.27

 

  • Github
  • Twitter
  • Chat
  • Forum
  • Bitovi
    • Bitovi.com
    • Blog
    • Consulting
    • Training
    • Open Source
  • Chat
  • Forum
  • Star
  • Follow @canjs
  • compute
  • / On this page
    • compute

      function
      • source

      scope.compute(key, [options])

      Parameters

      1. key {can-mustache.key}:

        A dot seperated path. Use "." if you have a property name that includes a dot.

      2. options {can-view-scope.readOptions}:

        Options that configure how the key gets read.

      Returns

      {compute(newVal)}:

      A compute that can get or set key.

      CanJS is part of DoneJS. Created and maintained by the core DoneJS team and Bitovi. Currently 3.0.0.