by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 29 19:08
    cherifGsoul labeled #5479
  • May 28 17:07
  • May 26 18:19
    cherifGsoul opened #5492
  • May 23 05:53
    bmomberger-bitovi labeled #5491
  • May 23 05:53
    bmomberger-bitovi opened #5491
  • May 22 20:50
    greenkeeper[bot] commented #5489
  • May 22 20:50

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

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

  • May 21 20:25
    mikemitchel commented #5490
  • May 21 20:25
    mikemitchel labeled #5490
  • May 21 20:25
    mikemitchel opened #5490
  • May 19 22:21
    greenkeeper[bot] labeled #5489
  • May 19 22:21
    greenkeeper[bot] opened #5489
  • May 19 22:21

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

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

  • May 18 18:40
    greenkeeper[bot] commented #5469
  • May 18 18:40

    greenkeeper[bot] on @octokit

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

  • May 17 22:31
    greenkeeper[bot] commented #5469
  • May 17 22:31

    greenkeeper[bot] on @octokit

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

  • May 16 19:16

    greenkeeper[bot] on kefir-3.8.7

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

  • May 15 16:30
    cherifGsoul synchronize #5488
  • May 15 16:30

    cherifGsoul on version-and-release-integration

    remove the github token (compare)

Christopher Oliphant
@RALifeCoach
I have everything back in except for the template
Mohamed Cherif Bouchelaghem
@cherifGsoul
what you mean?
Christopher Oliphant
@RALifeCoach
var Component = require('can-component');
var Map = require('can-map');
var $ = require('jquery');
var stache = require('can-stache');
// var template = require('./player-bio.stache!');
//
var PlayerBioViewModel = Map.extend({

});

console.log('ajhgjasgjahsgjhagshjgas');
Component.extend({
    tag: 'pgat-player-bio',
    template: stache('<div>Hello World</div>'),
    viewModel: PlayerBioViewModel,
    events: {
        inserted: function () {
            console.log('here and here');
        }
    }
});

$(document.body).append(stache('<pgat-player-bio></pgat-player-bio>'));
when I uncomment the template line - the code no longer runs
with the template line commented out the component loads and the cone.log values are shown
Mohamed Cherif Bouchelaghem
@cherifGsoul
just // var template = require('./player-bio.stache');
Christopher Oliphant
@RALifeCoach
yes - commented out everything works - uncommented nothing works
Mohamed Cherif Bouchelaghem
@cherifGsoul
I mean var template = require('./player-bio.stache');
without the "!"
Christopher Oliphant
@RALifeCoach
the ! prevents steal from adding .js
Mohamed Cherif Bouchelaghem
@cherifGsoul
yes I have the same error now
Christopher Oliphant
@RALifeCoach
now add that section to the package.json
  "system": {
    "ext": {
      "stache": "can-stache"
    }
  },
and put the ! back in
then you will no errors and no output
not even the console.log output
Mohamed Cherif Bouchelaghem
@cherifGsoul
yes
Christopher Oliphant
@RALifeCoach
do I need to revert to 2.3? or can this be diagnosed fairly quickly?
Mohamed Cherif Bouchelaghem
@cherifGsoul
I told you is not ready for production :)
for production use 2.3 for now
Christopher Oliphant
@RALifeCoach
okay - we will go back to 2.3
thanks for your help
Mohamed Cherif Bouchelaghem
@cherifGsoul
you are welcome
Christopher Oliphant
@RALifeCoach
can you please let me know when this is resolved
Mohamed Cherif Bouchelaghem
@cherifGsoul
ok n
np
@RALifeCoach it is resolved
Christopher Oliphant
@RALifeCoach
wow, that was amazing!
Mohamed Cherif Bouchelaghem
@cherifGsoul
install this plugin
Christopher Oliphant
@RALifeCoach
npm install steal-stache?
Mohamed Cherif Bouchelaghem
@cherifGsoul
yes like in the docs in the repo
npm install steal-stache --save
I updated can-playground
Christopher Oliphant
@RALifeCoach
Thanks - my code is running now
Mohamed Cherif Bouchelaghem
@cherifGsoul
no problem
Sunil George
@georgesunil81
A quick question - I want to do a stache {{#if helper arg1 arg2}}{{/if}}, how do I do it syntaxwise?
For example -
{{#if isLicenseExpired visitDate expiration}}<p>Expired</p>{{/if}}
Christopher Oliphant
@RALifeCoach
{{#if helper(arg1, arg2)}}{{/if}}
Sunil George
@georgesunil81
Ah! That is what I was missing, let me try that.
Thanks @RALifeCoach
Christopher Oliphant
@RALifeCoach
You’re welcome
Sunil George
@georgesunil81
Yes, it worked. Thanks @RALifeCoach for the quick help.
Leath Cooper
@IcculusC
o/
anyone have any insight on what's going on here canjs/can-component#27
Christopher Oliphant
@RALifeCoach
Hi all. In 2.3 I could reference this.element.attr. In 3.0 I am getting an error. What’s different in 3.0?
Christopher Oliphant
@RALifeCoach
In 3.0 I can use $(this.element).find, but not $(this.element).attr
Ignore the last comment $(this.element).attr works