Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:07
    matthewp opened #5292
  • 13:06

    matthewp on setupguide

    Current static Update setting up canjs The setting up guide (compare)

  • 07:26

    greenkeeper[bot] on webpack-cli-3.3.9

    (compare)

  • 07:18

    greenkeeper[bot] on webpack-cli-3.3.9

    chore(package): update webpack-… (compare)

  • 04:54
    justinbmeyer commented #5290
  • Sep 16 20:45
    matthewp commented #5291
  • Sep 16 20:44
    matthewp synchronize #5291
  • Sep 16 20:44

    matthewp on type8

    Increase bundlesize for core T… (compare)

  • Sep 16 20:30
    matthewp opened #5291
  • Sep 16 20:29

    matthewp on type8

    Upgrade to can-type 1.0.0-pre.8 (compare)

  • Sep 16 20:23
    phillipskevin labeled #5290
  • Sep 16 20:23
    phillipskevin labeled #5290
  • Sep 16 20:23
    phillipskevin opened #5290
  • Sep 16 19:56

    chasenlehara on major

    Bump can-connect version (compare)

  • Sep 16 18:12
    greenkeeper[bot] labeled #5289
  • Sep 16 18:12
    greenkeeper[bot] opened #5289
  • Sep 16 18:11

    greenkeeper[bot] on can-map-4.3.10

    fix(package): update can-map to… (compare)

  • Sep 16 17:51

    chasenlehara on major

    Update dependencies for 5.33.1 Update dist for release Merge branch 'master' into major (compare)

  • Sep 16 17:34

    chasenlehara on master

    Update dist for release (compare)

  • Sep 16 17:34

    chasenlehara on v5.33.1

    Update dist for release 5.33.1 (compare)

Frank Lemanschik
@frank-dspeed
with all npm packages pre installed!
and free api
Eben
@eben-roux
well, well, well... look at that
have to give it a spin some time
Frank Lemanschik
@frank-dspeed
yes sure you should do that :)
you can now test every package online
without installation
the next step is now to combine it with some frontend rendering then we can do frontend backend examples in the same environment
all without install
Frank Lemanschik
@frank-dspeed
i will try to release this year a Plugin for vscode and atom to online edit and export that
for frontend and backend this will allow to develop modules online without install of dependencys
will save a lot of time
Andrei Balmus
@abalmush
hi guys in canjs 2 I was able to trigger events using can.trigger in canjs 3 we dont have can.trigger
let ViewModel = new can.Map({
        getOrderDetails: function(code) {
            can.trigger(this, {
                type: 'activateOrderDetails',
                detail: {
                    code: code
                }
            });
        }
    });
oh found looks like it’s now dispatch not trigger
Dovid Bleier
@dbleier
how can I grab the value of another field in an on:click call? for example
<div id="updateula" on:click="sendCommand('urllauncher', document.getElementById('urllauncher').value)" class="remoteButton blue span2">Update URL Launcher</div>
document.getElementById('urllauncher').value sends undefined into my viewModel method
Dovid Bleier
@dbleier
I solved it by pushing the value of the desired component to a vm prop, and then pulled it into the on:click. Don't know if that is the best solution.
Kevin Phillips
@phillipskevin
you can use a template variable also
value:to="scope.vars.urllaunchervalue"
Dovid Bleier
@dbleier
ah, good idea
Justin Meyer
@justinbmeyer
@abalmush yeah, it's on the map now I think this.dispatch( ... )
at least it's on DefineMap
Jeroen Cornelissen
@jeroencornelissen
How do you pass a function to a child component in CanJS 4?
myFunction:from=“scope.root.myFunction” won’t work.
In 3.0 something like this worked: myFunction:from=“@myFunction"
Jeroen Cornelissen
@jeroencornelissen

My parent component has a function in it’s VM like this:

myFunction() { … }

My child component has a property in it’s VM like this:

myFunction: { Type: Function }
Jeroen Cornelissen
@jeroencornelissen

Hmmm, only this seems to work, in my parent:

myFunction: {
  get() { return () => { … }
}

Is this how it should work?

Jeroen Cornelissen
@jeroencornelissen
Whoops, nevermind had a typo in my function names… 🤪
Andrei Balmus
@abalmush
thank you @justinbmeyer , can you please help me with one small thing, I’m trying to get validation work as it worked with can.js 2 but for some reasone validate method inside map is missed, that's what I importing:
Screen Shot 2018-02-23 at 6.06.48 PM.png
and here I’m trying to validate:
Screen Shot 2018-02-23 at 6.06.35 PM.png
this is equal to Map
Frank Lemanschik
@frank-dspeed
its now a mixin for can-define you can easy apply it
Eben
@eben-roux
I'm trying to make use of the init function on a DefineMap:
The output seems to do something weird with the input to the new Map(). You'll see that the input argument is split into the individual characters in the console.
What am I missing/doing wrong here?
Flavio Garcia
@piraz
Hello everybody
What is the best way to clear a list?
I'm getting an annoying info, probably caused by on the stache
I'm doing: viewModel.contacts.update([]);
Flavio Garcia
@piraz
Got it
The issue wasn't when clearing the list
was the way it was defined on the stache
{{#each(contacts)}}
fixed the issue
instead of just {{#contacts}}