DoneJS StealJS jQuery ++ FuncUnit DocumentJS
3.0.0
2.3.27

 

  • Github
  • Twitter
  • Chat
  • Forum
  • Guides
  • Core
  • Ecosystem
    • can-construct-super
    • can-define-stream
    • can-fixture
    • can-fixture-socket
    • can-jquery
    • can-stache-converters
    • can-stream
    • can-vdom
    • can-view-import
      • Pages
        • Dynamic Imports
        • Static Imports
      • Attributes
        • can-tag
        • from
        • {^value}
    • can-zone
    • steal-stache
  • Infrastructure
  • Legacy
  • Bitovi
    • Bitovi.com
    • Blog
    • Consulting
    • Training
    • Open Source
  • Chat
  • Forum
  • Star
  • Follow @canjs
  • CanJS
  • /
  • Ecosystem
  • /
  • can-view-import
  • /
  • from
  • / On this page
    • from

      function

      Set the module name that will be imported into the template.

      • source

      from="MODULE_NAME"

      Passes MODULE_NAME to import and sets the <can-import>'s viewModel to be the returned Promise.

      <can-import from="bootstrap/bootstrap.css" />
      

      Parameters

      1. MODULE_NAME {String}:

        The name of the module to import.

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