Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 05:21

    greenkeeper[bot] on steal-2.2.4

    chore(package): update steal to… (compare)

  • Oct 21 18:27
    greenkeeper[bot] labeled #5392
  • Oct 21 18:27
    greenkeeper[bot] opened #5392
  • Oct 21 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)

Kevin Phillips
@phillipskevin
with data-can-automount="false"
@ivospinheiro can you open an issue about the performance degredation on older firefox?
and give whatever info you can about the template that is taking a long time to render
Frank Lemanschik
@frank-dspeed
does any one in here know how to turn component.element into a string?
i get at present the JS Representation i don't remember how to get HTML
Frank Lemanschik
@frank-dspeed
oh i found it i did not find it because it was no visible key :)
element.innerHTML did it
Viktor Busko
@Lighttree
Guys in can@3 is there any way to create var in template only. I have some property that purely view-related and I don't want to create viewModel property for it.
I use scope.vars for this purpose usually, but it used in "right hand side" so I put "somthing" to this scope.var, and I want to create kinda scope.vars.something:from="myHelper(param, param)". I assume Can@5 solves this with let helpers.
If you know any another way it might be interested as well. Basically I need to store helper execution results somewhere and then pass object with helper execution results somewhere else.
Frank Lemanschik
@frank-dspeed
sorry i don't understand
but if you would create some example code with a expected result
i probally know a hack around that
start a little codepen with some code for myHelper
let it simply return the expected html it don't needs to work then i can show you how
Viktor Busko
@Lighttree
its a bit hard to create example in Can@3. I'll try to rephrase. I would like to create variable in stache, assign it and use it :D Key point here that I don't have any data in viewModel.
Frank Lemanschik
@frank-dspeed
but why ?
i don't understand why you don't get the data from the viewModel
you should add functions inside of the viewModel that retrive data
the same logic that your helper does could be a function in the viewModel
Frank Lemanschik
@frank-dspeed
a way to get variables out of something into your template for can@3 is <can-import> @Lighttree
Frank Lemanschik
@frank-dspeed
<can-dynamic-import from="MODULE_NAME" value:to="*MODULE_REF"/>
Dynamically import a module from within a can-stache template. Since there is no subtemplate to attach the Promise to as the current scope, you must export the Promise's resolved value to the template's refs scope using value:to.
so you code a module like
module.exports = { data: '' }+
and import that
Devendra Singh
@devs4522
Hi There..
I am currently working on web application which is developed using canjs. Now i want to integrate an angular component (for example header component) in canjs application. Is it technically possible ? Any help is much appreciated.
Devendra Singh
@devs4522
@marshallswain Can you please help me in this ?
Chasen Le Hara
@chasenlehara
@devs4522 It should be doable. Have you run into any specific issues yet?
Devendra Singh
@devs4522
I am in the initial phase of this task. Not sure where to start that's why looking for some one's advice how to go for this. Have you ever tried ?
@chasenlehara
Frank Lemanschik
@frank-dspeed
@devs4522 ok i will help you
first you need to create something
for example a canjs app
then you put your angular <app-block>
inside or outside the canjs template stuff
then you import and init angular
if that errors you put that angular init into the connectedCallback of the related canjs component
or you do it via a setTimeout
it depends a lot on how much of the dom is controled by canjs
for example you could have some basic html with a little canjs widget and a total other part of html for angular
if the angular widget is inside the canjs widget you need connected callback or setTimeout
you can also use the on:inserted dom event
if you put the angular component dynamic into the dom
Frank Lemanschik
@frank-dspeed
here i prepared a codepen mixup for you with a canjs and a angular app
Chasen Le Hara
@chasenlehara
@devs4522 Which versions of Angular and CanJS?
Like Frank said, connectedCallback (in CanJS 4 & 5) or the inserted event (<= CanJS 3) will be your friend. You can probably have the Angular template in a stache file, then start Angular’s initialization process in either connectedCallback or the inserted event.
Devendra Singh
@devs4522
@chasenlehara My canjs application is using <=3 canjs version and angular 4. Thanks for your help. These info are really helpful for me to kickstart my work.
@frank-dspeed Thanks a lot for your detailed info and codepen demo. i will start with this and will disturb you again in case of any issue :)
kostya.aderiho
@kaderiho

Hi guys, I faced with issue when I share my component's method through the @ binding, that method is called 3 times when I came to the page where this component holds. May be someone knows why it may happens?

Thanks in advance