Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sap-samples/ui5-webcomponents-sample-vue
UI5 Web Components Sample TODO application built with Vue.
https://github.com/sap-samples/ui5-webcomponents-sample-vue
sample sample-code ui5 ui5-webcomponents vue
Last synced: 3 days ago
JSON representation
UI5 Web Components Sample TODO application built with Vue.
- Host: GitHub
- URL: https://github.com/sap-samples/ui5-webcomponents-sample-vue
- Owner: SAP-samples
- License: apache-2.0
- Created: 2019-02-20T22:20:01.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-12-17T17:46:17.000Z (2 months ago)
- Last Synced: 2025-02-09T23:11:57.610Z (12 days ago)
- Topics: sample, sample-code, ui5, ui5-webcomponents, vue
- Language: Vue
- Homepage: https://sap-samples.github.io/ui5-webcomponents-sample-vue/
- Size: 16.8 MB
- Stars: 59
- Watchers: 13
- Forks: 22
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README

[](https://github.com/SAP-samples/ui5-webcomponents-sample-vue/actions/workflows/ci.yaml)
[](https://api.reuse.software/info/github.com/SAP-samples/ui5-webcomponents-sample-vue)# UI5 Web Components Vue Sample Application
[Vue](https://vuejs.org/) sample application to demonstrate the usage of the [UI5 Web Components](https://github.com/SAP/ui5-webcomponents). It shows how to bind properties, to subscribe to events, using nested components and the bootstrapped Vue build.
This project was bootstrapped with [Vue CLI](https://cli.vuejs.org/)
## Prerequisites
- [Node.js](https://nodejs.org/) (**version 8.5 or higher** ⚠️)## Getting started
1. [Clone this repository](https://help.github.com/articles/cloning-a-repository/) using the [GitHub Command line tool](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) and navigate into the downloaded directory.
```sh
git clone https://github.com/SAP-samples/ui5-webcomponents-sample-vue.git
cd ui5-webcomponents-sample-vue
```
1. Install all dependencies
```sh
npm install
```1. Start a local server and run the application. (The running application can be found here: http://localhost:5173)
```sh
npm run dev
```## Noteworthy
### Consume UI5 Web Components
Import the desired component(s) in your app to define the UI5 Web Component.
For example, to use `ui5-button` you need to import it:
```js
import "@ui5/webcomponents/dist/Button"; // loads ui5-button
```
Then, you can use the custom element in an HTML page:
```html
Hello world!
```## Browser support
Currently Chrome, Safari, Firefox and Edge (Chromium-based) support Web Components natively.
## Configure Vue to work with Web Components defined outside of it
It is recommended to exclude our custom elements from component resolution by specifying `compilerOptions.isCustomElement` in our `vite.config` file.
```ts
// vite.config.jsimport { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue({
template: {
compilerOptions: {
// treat all tags with a "ui5-" prefix as custom elements
isCustomElement: tag => tag.startsWith('ui5-')
}
}
})
]
})
```### Where is the npm package?
- [UI5 Web Components](https://www.npmjs.com/package/@ui5/webcomponents)## Limitations
No limitations known.## Known Issues
No major bugs known.## Support
We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/master/SUPPORT.md#-content) on how to report an issue, or chat with us in the `#webcomponents` channel of the [OpenUI5 Community Slack](https://ui5-slack-invite.cfapps.eu10.hana.ondemand.com/).## Contribute to UI5 Web Components
Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/master/CONTRIBUTING.md).