Where communities thrive


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

    greenkeeper[bot] on core-js-3.3.3

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

  • Oct 18 22:20
    greenkeeper[bot] labeled #5391
  • Oct 18 22:20
    greenkeeper[bot] opened #5391
  • Oct 18 22:20

    greenkeeper[bot] on can-observable-mixin-1.0.3

    fix(package): update can-observ… (compare)

  • Oct 18 19:08
    cherifGsoul labeled #5390
  • Oct 18 19:07
    cherifGsoul opened #5390
  • Oct 18 18:45
    greenkeeper[bot] labeled #5389
  • Oct 18 18:45
    greenkeeper[bot] opened #5389
  • Oct 18 18:45

    greenkeeper[bot] on can-observable-bindings-1.3.0

    fix(package): update can-observ… (compare)

  • Oct 18 18:29

    matthewp on master

    Update dist for release (compare)

  • Oct 18 18:29

    matthewp on v6.1.3

    Update dist for release 6.1.3 (compare)

  • Oct 18 17:59

    matthewp on can-observable-array-1.0.2

    (compare)

  • Oct 18 17:59

    matthewp on master

    fix(package): update can-observ… Merge pull request #5388 from c… (compare)

  • Oct 18 17:59
    matthewp closed #5388
  • Oct 18 16:46
    greenkeeper[bot] labeled #5388
  • Oct 18 16:46
    greenkeeper[bot] opened #5388
  • Oct 18 16:46

    greenkeeper[bot] on can-observable-array-1.0.2

    fix(package): update can-observ… (compare)

  • Oct 18 12:45
    greenkeeper[bot] labeled #5387
Christopher Oliphant
@RALifeCoach
Here is what I tried, but the results are the same.
Mohamed Cherif Bouchelaghem
@cherifGsoul
Christopher Oliphant
@RALifeCoach
Is it expecting an ‘id’ for a get?
Christopher Oliphant
@RALifeCoach
I tried your suggestion and it didn’t work. I then added {id: ‘id’} in the get command. Now it is working.
That means I will have to have can-fixture into Production?
Leath Cooper
@IcculusC
when someone is available can I get a second set of eyes on something, I think I discovered and fixed a bug in can-stache-bindings
Leath Cooper
@IcculusC

it looks like when a function is called from a binding like

<button type="button" ($click)="clickHandler()">Click Me</button>

it doesn't differentiate a Helper expression type (from can-stache/src/expression) from a Call expression type and tries to call a function which exists on the Helper, but not the Call

Christopher Oliphant
@RALifeCoach
This message was deleted
Christopher Oliphant
@RALifeCoach
I am figuring out can-connect - it is working quite nicely
Christopher Oliphant
@RALifeCoach
I have a viewModel defined as a DefineMap that I then include in a component. How do I reference/update the elements in the viewModel? In 2.3 I used this.viewModel.attr(). What do I do in 3.0?
Christopher Oliphant
@RALifeCoach
@cherifGsoul @matthewp @Bajix ^^
Mohamed Cherif Bouchelaghem
@cherifGsoul
@RALifeCoach in 3.0 view models are attrless
this.viewModel.yourProp
Leath Cooper
@IcculusC
@cherifGsoul could you possibly run the tests on can-stache-bindings@3.0.0-pre.5 and tell me if you see them passing?
pretty sure it's fubar
Christopher Oliphant
@RALifeCoach
@cherifGsoul I am missing something. Do I define the viewModel as a Map or DefineMap?
I have it as a Map and this.viewmodel.myProp = ‘some value’ isn’t working
Mohamed Cherif Bouchelaghem
@cherifGsoul
@RALifeCoach sorry I see your previous questions new
can-fixture yes is for testing and developing purpose to work on the frontend part withourt the API/server
Christopher Oliphant
@RALifeCoach
I was able to replace can-fixture with getData in can-connect
Mohamed Cherif Bouchelaghem
@cherifGsoul
ok
can-fixture is just to simulate ajax/api calls
Christopher Oliphant
@RALifeCoach
But I can’t get the viewModel updated from a component event unless I define my viewModel as a Map and then use this.viewModel.attr(‘prop’, ‘some value)
When I convert from a Map to a DefineMap, I can’t update it at all
Leath Cooper
@IcculusC
This message was deleted
Mohamed Cherif Bouchelaghem
@cherifGsoul
@RALifeCoach do use to 2.x Map with define plugin?
Leath Cooper
@IcculusC
I'm using DefineMap myself, and it works great, but I am using the this.viewModel.foo = "bar"; setters
Sunil George
@georgesunil81
A quick question - if I add some HTML dynamically to the DOM, I wanted to have the inline stache keys to resolve to values, is that possible? For example, if I do something like -
```
Mohamed Cherif Bouchelaghem
@cherifGsoul
@IcculusC if you are sure you can you open an issue?
Leath Cooper
@IcculusC
I'm not 100% sure
Christopher Oliphant
@RALifeCoach
I am using can-map installed via npm - that should be 3.0
Leath Cooper
@IcculusC
I mean it seems ridiculous... it's failing 5 tests and it's completely broken
am I really the only person seeing that?
Mohamed Cherif Bouchelaghem
@cherifGsoul
you can use can-define also
@IcculusC Im installing dependecies
Leath Cooper
@IcculusC
thank you
Christopher Oliphant
@RALifeCoach
@IcculusC do you have a sample of using DefineMap as a viewModel and updating it from a compnent’s event?
Sunil George
@georgesunil81
 $('#my-div').append('<p>{{mykey}}</p>');
Leath Cooper
@IcculusC
I'm actually not using events at the moment
I'm fighting with event bindings instead
Christopher Oliphant
@RALifeCoach
@cherifGsoul can you show me an example?
Sunil George
@georgesunil81
Is there a way that the above stache key be resolved into its value also when it is dynamically inserted into the DOM?
Mohamed Cherif Bouchelaghem
@cherifGsoul
@RALifeCoach I dont have working example but you can check the tests
@georgesunil81 $('#my-div').append(can.view('<p>{{mykey}}</p>',{myKey: value}));
Sunil George
@georgesunil81
Thanks @cherifGsoul I will try it out. Thanks for the help.
Mohamed Cherif Bouchelaghem
@cherifGsoul
np
@IcculusC did you check the binding docs?
Christopher Oliphant
@RALifeCoach
‘check the tests’ that sounds like a very time consuming activity
Leath Cooper
@IcculusC
@cherifGsoul yeah, I opened an issue on can-component when I thought it was an error there if you want to see how I'm using it it's issue #27