Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install this addon? #64

Closed
denzo opened this issue Nov 16, 2016 · 11 comments
Closed

How to install this addon? #64

denzo opened this issue Nov 16, 2016 · 11 comments
Labels

Comments

@denzo
Copy link

denzo commented Nov 16, 2016

I used ember install ember-microstates but then get an error:

ember.debug.js:52291 Uncaught Error: Compile Error: let is not a helper

@taras
Copy link
Member

taras commented Nov 16, 2016

If you copy and pasted an example from the README, then you probably got {{let}} in your code.

You can install ember-let with ember install ember-let (make sure to restart your server bofore trying again)

@ming-codes
Copy link

@taras It seems like ember-let should be a dependency then.

@taras
Copy link
Member

taras commented Dec 2, 2016

@ming-codes It's not strictly a dependency because you don't need let but it's a convenient way to use it.

@denzo did my suggestion resolve your issue?

@vasilakisfil
Copy link

@taras there should be at least a reference in the readme

@cowboyd
Copy link
Member

cowboyd commented Dec 19, 2016

Yeah, we should probably include a link to ember-let

@xtagon
Copy link

xtagon commented Aug 20, 2018

How do you use it without let? What is the equivalent of using the type helpers like Boolean from within a controller or component instead of using let in the template?

@cowboyd
Copy link
Member

cowboyd commented Aug 23, 2018

I think that @knownasilya might have the best answer for this.

@taras
Copy link
Member

taras commented Aug 24, 2018

There is a Pull Request in the works #69 that's a good place to look

@knownasilya
Copy link
Collaborator

Looks like @taras beat me to it 👍

@taras taras added the question label Nov 27, 2018
@taras
Copy link
Member

taras commented Nov 27, 2018

@xtagon

What is the equivalent of using the type helpers like Boolean from within a controller or component instead of using let in the template?

#72 introduced state computed property macro. It can be used as you described.

import Component from '@ember/component';
import { state } from '@microstates/ember';

export default Component.extend({
  isOpen: state(false)
})

For more examples, checkout https://ember-microstates.netlify.com

A new release of @microstates/ember is coming imminently.

@taras taras closed this as completed Nov 27, 2018
@xtagon
Copy link

xtagon commented Nov 27, 2018

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants