Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 20:19
    greenkeeper[bot] labeled #5377
  • 20:19
    greenkeeper[bot] opened #5377
  • 20:19

    greenkeeper[bot] on @feathersjs

    chore(package): update @feather… (compare)

  • 20:18
    greenkeeper[bot] labeled #5376
  • 20:18
    greenkeeper[bot] opened #5376
  • 20:18

    greenkeeper[bot] on @feathersjs

    chore(package): update @feather… (compare)

  • 14:43
    greenkeeper[bot] closed #5373
  • 14:43

    greenkeeper[bot] on can-deep-observable-1.0.1

    (compare)

  • 14:42

    m-mujica on update-deep-observable

    (compare)

  • 14:42

    m-mujica on master

    Update can-deep-observable to l… Merge pull request #5374 from c… (compare)

  • 14:42
    m-mujica closed #5374
  • 14:42
    m-mujica closed #5365
  • 14:09
    f-ricci starred canjs/canjs
  • 13:55
    greenkeeper[bot] commented #5375
  • 13:55

    greenkeeper[bot] on core-js-3.3.2

    chore(package): update core-js … (compare)

  • 10:51
    m-mujica review_requested #5374
  • 07:43
    rjgotten commented #5358
  • Oct 13 15:14
    greenkeeper[bot] commented #5375
  • Oct 13 15:14

    greenkeeper[bot] on core-js-3.3.1

    chore(package): update core-js … (compare)

  • Oct 13 14:49
    greenkeeper[bot] labeled #5375
Gregg Roemhildt
@roemhildtg
Gira Minus
@gKreator
what if the get value had an ajax call in it?
Gregg Roemhildt
@roemhildtg
Use an async getter
Kevin Phillips
@phillipskevin
not sure exactly what you want it to do, but it’s erroring because post is undefined
which you can fix with an {{#if post}}
Gira Minus
@gKreator
i was going to create a can-connect that on page load it gets the post_id, then sends an ajax request and fills itself out
i think i saw something similar on bitballs
Gira Minus
@gKreator
@phillipskevin this is a more complete example http://jsbin.com/dibiqut/edit?js,console,output
blob
that worked
nice
thanks @phillipskevin it was that {{#if post}} that was needed
Kevin Phillips
@phillipskevin
:thumbsup:
Gira Minus
@gKreator
does {($value)}="item.name" can-stache-converters work right out of the box or do you have to import and assign something?
Brad Momberger
@bmomberger-bitovi
That's part of can-stache-bindings
Gira Minus
@gKreator
import "can-stache-converters";
is that all you have to do?
ohh bindings
Brad Momberger
@bmomberger-bitovi
Should be, yeah, and with converters you get things like {($value)}="equal(~val, 'foo')"
(can-stache-converters itself imports can-stache-bindings, since the two work together)
Gira Minus
@gKreator
seems to not be working
Brad Momberger
@bmomberger-bitovi
Any console errors with that?
Gira Minus
@gKreator
nope
Brad Momberger
@bmomberger-bitovi
Hm.
Can you repro this in a JSBin?
Gira Minus
@gKreator
it works in a jsbin
Brad Momberger
@bmomberger-bitovi
OK.
Gira Minus
@gKreator
im using steal and such on the actual app, so just wondering if i have to import anything special
Brad Momberger
@bmomberger-bitovi
You can try importing can-stache-bindings directly, but I think your issue might be elsewhere, like if you're creating a context around the place where you're doing this binding (like, if you made a stache section)
Gira Minus
@gKreator
omg
it only works if the value is a number
wtf
Brad Momberger
@bmomberger-bitovi
Your viewmodel is a DefineMap?
Gira Minus
@gKreator
and it does not update the map
yes
Brad Momberger
@bmomberger-bitovi
I had a similar problem recently that made a property undefined all the time, and it was due to a separate definition setter happening that blanked out the value. I don't know if that's your issue, but maybe try commenting out your other defined values
Gira Minus
@gKreator
just noticed something crazy
nested properties are bleeding into the parent object of my definemap
Brad Momberger
@bmomberger-bitovi
a-ha. That is crazy
Gira Minus
@gKreator
blob
why would this be happening
lol
omg
im giving up
after 3 more hours
Brad Momberger
@bmomberger-bitovi
Weird that there's meow but not driver_name
Gira Minus
@gKreator
well technically it wants 123 and it cannot be 123 since it is a number
Brad Momberger
@bmomberger-bitovi
Well also, 123asd is a value of a prop and also a prop itself.
That's not right. Something is off.