These are chat archives for canjs/canjs

25th
Jan 2017
Gira Minus
@gKreator
Jan 25 2017 00:29
in can-stache is the best way to do an { if and } operation, is by using a can-stache-helper?
Kevin Phillips
@phillipskevin
Jan 25 2017 00:30
not sure what you mean
Gira Minus
@gKreator
Jan 25 2017 00:30
{{#if project_exists and user_logged_in}}
Kevin Phillips
@phillipskevin
Jan 25 2017 00:31
might make sense to make a virtual property for that condition
Gira Minus
@gKreator
Jan 25 2017 00:31
virtual property?
Kevin Phillips
@phillipskevin
Jan 25 2017 00:32
with a get() { } on your viewModel
Gira Minus
@gKreator
Jan 25 2017 00:32
ok yeah thats what i was thinking
Kevin Phillips
@phillipskevin
Jan 25 2017 00:32
get showProject() {
  return this.project.exists && this.user.isLoggedIn;
}
or something like that
Gira Minus
@gKreator
Jan 25 2017 00:33
yeah exactly
thanks!
Jeroen Cornelissen
@jeroencornelissen
Jan 25 2017 08:02
@phillipskevin @matthewp @gKreator , thanks for fixing the bug so quickly.
Installing can-view-parser as a dependency did the trick (I didn’t have it in my package.json).
Gira Minus
@gKreator
Jan 25 2017 09:47
@jeroencornelissen Thanks for pointing it out. Remember, only you can prevent forest fires.
@phillipskevin http://forums.donejs.com/t/form-viewmodel-sync/543 I feel like you might have input on this. :D