Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Avichay Eyal
@eavichay
@David-Mulder Anything I can help?
David Mulder
@David-Mulder
will be writing down a coule of issues on Github, mostly wanted to ask about how to get it working on IE11, but think I figured that out yesterday
Avichay Eyal
@eavichay
Firefox issues were fixed. The attribute decorator is undocumented while still experimental.
Chris Villanueva
@chrisVillanueva
Hi There! I just found slim.js and going to give it a try. It looks promising and I hope to use it in a project I work on.
Avichay Eyal
@eavichay
@chrisVillanueva AMA if you need assistance. Documentation still imperfect FYI.
NHKK
@NHKK
Screen Shot 2018-09-23 at 10.42.45 PM.png
I just clone the boilerplate project, did install and start nothing shows up; this was seen in the console
is there something I'm missing? I hate to use an non-working boilerplate example as a starting point
Aidan Sawyer
@atla5
is there a way to consume the library from a CDN link of some sort?
similar to something like this.
<script type="text/javascript" src="http://slimjs.com/path/to/cdn/slim.min.js"></script>
Avichay Eyal
@eavichay
Nhkk boilerplate broken. Fix due tomorrow.
Aidan, unpkg cdn. https://unpkg.com/slim-js will always redirect to latest.
Aidan Sawyer
@atla5
my apologies for the question, found it here: https://cdnjs.com/libraries/slim.js. might be worth adding it to the "Getting Started" docs
thank you! :+1:
Avichay Eyal
@eavichay
Cdnjs not updated... Use unpkg
Aidan Sawyer
@atla5
:white_check_mark:
Aidan Sawyer
@atla5
I'm having difficulty getting slim to run in jsfiddle [http://jsfiddle.net/0au28sw5/22/]. (you can see it listed as a resource on the left bar)
getting the following in the console:
Uncaught SyntaxError: Unexpected token export Slim.js:1
Avichay Eyal
@eavichay
@NHKK boilerplate updated.
Please read the "migration to 4.x" in the slim.js repo README if you want all features
Avichay Eyal
@eavichay

@atla5 I have updated your fiddle https://jsfiddle.net/0au28sw5/24/
The changes I made:
If you load slim.js from CDN you should either use <script type="module" src="..."></script> or in the case of jsfiddle, es modules aren't built-in so you should use the ...path/Slim.nomodule.js, same for directives.

I removed the import statements as in your fiddle slim was loaded from the HTML wrapper and not via npm modules.

Since v4.x the directives are split into separate files, there is an "/directives/all.js" or "/directives/all.nomodule.js" to support it.

Since v3.x as it was completely rebuilt the syntax is more concise, so this was also changed.

The slim element works, but the bootsrap does not as it is missing some other bootstrap javascript files.

screenshot.png
Aidan Sawyer
@atla5
thanks so much. i really appreciate it.
Jkx
@jkxathome_twitter
Hi everybody. I'm wondering if there is a way to have component inheritrance in the browser. All inheritrance examples are given in typescript. I tried to transpile it to JS, but still have some issues w/ require() .. and so on.
Aidan Sawyer
@atla5
technically speaking, web components fundamentally work on ‘inheritance’ (by sub-classing HTML-Element).
and they can be nested in the sense that you can use one web component within another. just be careful to import the file/s correctly.
Jkx
@jkxathome_twitter
@atla5 this for example won't work https://pastebin.de/12606/
In a vanilla WC this works out of the box, I'm wondering how I can do that w/ slim.js.
Aidan Sawyer
@atla5
gotcha. i’m not sure about the slim side.
good luck!
Avichay Eyal
@eavichay
It is possible with slim.js as everything else is. I cannot get into the pastebin code, would appreciate if you can share a new link.
Moshe
@shootermv
hi Avichai! I can see that at official site's left navbar - the links have no 'pointer' cursor (hand not appears when you hovering above the link) - is that can be a subject for PR?
Avichay Eyal
@eavichay
Long time, @shootermv Everything is welcome.
AliasNemo
@AliasNemo
Hi Avichay!. I just started trying Slim Js. I really love it! .
Template treatment is very useful and practical.
I created a router easily. Now I get struggled with a redux implementation. Do you have any basic model in that way?
Avichay Eyal
@eavichay
@AliasNemo Yes. Will share soon.
Avichay Eyal
@eavichay
AliasNemo
@AliasNemo
@eavichay thanks a lot in advance! I'm going to try it
阿斯顿
@8debug
no person?
Avichay Eyal
@eavichay
?
中国人slim
@slimandyufeng
what this is
whishkid
@whishkid
Hi, does there happen to be an example with Vanilla-JS, without babel or webpack... Just using the platform?
preferably with using the import 'slim.js' way
Georges Gomes
@georges-gomes
There is also a Typescript example if you go to the main page webcomponents.dev
J Bruni
@jbruni
Slim rocks
lmtr0
@lmtr0:matrix.org
[m]
Hello everybody
good day
lmtr0
@lmtr0:matrix.org
[m]
can someone help me with this slimjs/slim.js#116
lmtr0
@lmtr0:matrix.org
[m]
forget it
Node0
@Node0
Hello all, I discovered SlimJs after getting tasked with a micro-app deliverable where I didn't want to roll out a vue project.
The SlimJs API seems tiny which is great to get going fast, and I figured I'd join the chat to take a pulse of the userbase.
flucrum
@flucrum
Good afternoon! I downloaded slim-js via npm. Found that the main file is not specified in Package.json, so I can't import the package.