Learn R Programming

vueR (version 0.6.0)

html_dependency_vue3: Dependencies for 'Vue3'

Description

Dependencies for 'Vue3'

Usage

html_dependency_vue3(offline = TRUE, minified = TRUE)

Value

htmlDependency

Arguments

offline

logical to use local file dependencies. If FALSE, then the dependencies use cdn as its src.

minified

logical to use minified (production) version. Use minified = FALSE for debugging or working with Vue devtools.

See Also

Other dependencies: html_dependency_vue()

Examples

Run this code
if(interactive()){

library(vueR)
library(htmltools)

browsable(
  tagList(
    tags$div(id="app","{{message}}"),
    tags$script(
    "
    var app = {
      data: function() {
        return {
          message: 'Hello Vue!'
        }
      }
    };

    Vue.createApp(app).mount('#app');
    "
    ),
    html_dependency_vue3()
  )
)
}

Run the code above in your browser using DataLab