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

Add hasTasks computed property for Projects #14

Open
hchood opened this issue Jan 22, 2015 · 0 comments
Open

Add hasTasks computed property for Projects #14

hchood opened this issue Jan 22, 2015 · 0 comments

Comments

@hchood
Copy link
Owner

hchood commented Jan 22, 2015

Need hasTasks property to reference on the project show page so I can display a message "No tasks added yet" instead of the "Tasks" header and <ul>.

Can I put that on the model? Examples I've seen put it on the controller. Need to better understand what can go on the model vs. controller.

http://stackoverflow.com/questions/25436210/ember-js-length-of-array-of-related-objects
http://emberjs.com/guides/object-model/computed-properties-and-aggregate-data/

@hchood hchood changed the title Display message on project show page if no tasks Add hasTasks computed property for Projects Jan 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant