stencil-component-starter | Minimal starter project for building | Web Framework library
kandi X-RAY | stencil-component-starter Summary
kandi X-RAY | stencil-component-starter Summary
This is a starter project for building a standalone Web Component using Stencil. Stencil is also great for building entire apps. For that, use the stencil-app-starter instead.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of stencil-component-starter
stencil-component-starter Key Features
stencil-component-starter Examples and Code Snippets
Community Discussions
Trending Discussions on stencil-component-starter
QUESTION
I am trying to pass a JSON string to my component prop and let the component parse the string into javascript object.
Unfortunately the @Watch decorator is not firing... what did I do wrong? I followed this documentation: https://stenciljs.com/docs/reactive-data#watch-decorator
Here are the relevant parts of my code:
ptw-input.tsx
...ANSWER
Answered 2018-Jun-22 at 14:18The @Watch
decorator does not fire when a component initially loads.
To get the method to run when the component loads, invoke it inside a componentWillLoad
lifecycle hook:
QUESTION
I'm using the stencil starter project found here (https://github.com/ionic-team/stencil-component-starter) and I would like to debug the code in visual studio code. I tried the following configurations but neither of them work
...ANSWER
Answered 2018-Nov-29 at 14:37The webRoot
for a Stencil app should be ${workspaceFolder}/www
. That should fix the launch
configuration.
To attach you have to set port
to the Chrome debugging port which you have to set with a flag.
Source: https://github.com/Microsoft/vscode-chrome-debug#attach
But since Stencil does not generate source maps yet you will only be able to debug the compiled code. Source: https://github.com/ionic-team/stencil/issues/219
My method for finding the correct generated file is to just add a debugger;
statement so that VS Code will automatically break.
QUESTION
I cloned the stencil-component-starter
from:
https://github.com/ionic-team/stencil-component-starter
Then on the file: my-component.tsx
I have the following code:
ANSWER
Answered 2018-Aug-28 at 01:54based on the latest 4.0 beta... I still do think there is a bug in the styling of the labels by default, but this is a work-around
reference to the doc since stencil uses ionic v4 - https://beta.ionicframework.com/docs/api/range
QUESTION
I need to clone an Ionic 4
component with StencilJS
, then...
I just created the repository:
https://github.com/napolev/custom-range
based on the repository:
https://github.com/ionic-team/stencil-component-starter
then copied the Ionic
component range
:
https://github.com/ionic-team/ionic/tree/master/core/src/components/range
to:
...ANSWER
Answered 2018-Aug-25 at 21:22Yes you have missing folders and files:
Download them from here: https://github.com/ionic-team/ionic/tree/master/core/src
Edit:
or add the following dependencies:
QUESTION
What is the proper way to use the styles
option/property of the ComponentDecorator
? Using the styles
property with the default my-name
component from the repository stencil-component-starter doesn't seem to affect the styles of the respective component nor generate something like a
ANSWER
Answered 2017-Oct-20 at 19:19I just tried with latest version 0.0.6-22, and it seems to work completely now.
While compiling, it will tell you if your styles contents is valid or not (mainly looking for valid selectors).
Here is a working example (with a simple string):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install stencil-component-starter
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page