How do you render different layouts?
@twisted1919 wrote: I have a basic scenario where i have to show different layout to guests vs authenticated users. I tried to render other template than the application one by using below code in my...
View ArticleWhat are right uses of controller
@mtangoo wrote: I have been reading the guide and it seems like its good to put almost everything in components. As it's written there, someday a controller will be gone. So I wanted to know what's is...
View ArticleUnless helper dilemma
@jcbvm wrote: Several times I've worked with Ember and Ember data I faced the following dilemma with the unless helper in templates: {{#unless model.someAsyncRelationship.someValue}} // do something...
View ArticleWriting adapter for my API
@mtangoo wrote: I have an API that does not follow JSONAPI format. Its written in Yii2 and so it have a consistent format. Here is an example: api/v1/companies [ { "id": 1, "name": "Company 1",...
View ArticleOptimizing route templates for Glimmer
@billdami wrote: One of the highly touted features of ember's glimmer rendering engine is that, similar to React.js, it does "DOM diffing" and only modifies the actual DOM when it has to. My question...
View ArticleAre embedded many to many relationships possible?
@bakerac4 wrote: A store can have many employees, and employees can have many stores. Model & Serializer for stores export default DS.Model.extend({ name: DS.attr('string'), address:...
View ArticleStandard way to set page title
@mtangoo wrote: I cannot find definitive way yet. I found this but it does not have a good answer. I checked discussions on Github which ended as addon. I'm reluctant to add addon just to add title....
View ArticleCustom notification service not showing notification in certain scenario
@JordanRDesigns wrote: Maybe someone can see what my be happening here because I can't figure out what it is. I have created a very simple service to manage the state of my notification component and...
View ArticleGenerated in-repo-addon's blueprint shoud under in-repo-addon's folder?
@alexanderchenmh wrote: Pasted image1343x490 63.2 KB Posts: 1 Participants: 1 Read full topic
View ArticleHow to reuse router paths
@pdeva wrote: I have a component 'C0' with a complex tabbed interface. When i use it as child of another component 'C1', i defines the routes for each of the tabs of 'CO' as child of 'C1'. However,...
View ArticleStandard way to submit form and transition route
@pdeva wrote: Surprisingly enough i cant find any docs for this at all. I have a component containing a form. On clicking 'submit' i want to transition to a different route. Where do i call the...
View ArticleEmber-cli build issue [newbie]
@Stuart_Douglas wrote: Being completely new to ember, i was happily typing away using ember s. However when I used ember build -prod I only get my index, I can no longer access any of the routes, the...
View ArticleConsuming App Name in Ember Addon
@lukeclewlow wrote: Hi there, I am currently writing an addon that for reasons I won't go into needs to have access to the consuming app's name. Is this something I can get from within the addon?...
View ArticleEmber & paged API, page_size from session cookie
@planetexpress69 wrote: Happy 2016 to everyone! I am using a paged API for my tiny Ember project. Therefore I added a parameter 'page_size' to my controllers which is initialized with - let's say - 10...
View ArticleProblem with Tutorial ember recover date from mirage
@Alessio_Varalta wrote: Hi, I am new and I try to use Ember.js. I try to read the guide and I create the first little prototype. I have problem at a point of guide when I have to retrieve the date...
View ArticleEmberCMS a full-stack javascript content management system released
@dioptre wrote: Please take a look at the very early stage EmberCMS at https://github.com/dioptre/embercms It's using all javascript, including sails and ember. Some people mentioned the learning...
View ArticleafterEach: signOut is not a function
@kgish wrote: For my acceptance tests I have created a very simple async test helper for logging out the user if logged in: // tests/helpers/sign-out.js import Ember from 'ember'; export default...
View ArticleEmber Tests Page Returns 404 Error
@anlumo wrote: Hi, I already posted this to Stack Overflow, but received no response there. An ember developer told me that I have a better chance of getting a response here, so maybe somebody here...
View ArticleEmberJS requiredKeys for action
@Charles_Bourasseau wrote: How can I define an action which is only call when a specific modifier key is pressed? allowedKeys also executes the action when no modifier keys are pressed. Posts: 1...
View ArticleEmber and send Data
@flpms wrote: Why Ember have a few tutorials teaching about user interaction sending data to a server, ex. do search using Ember with two or more params. Various tutorials I see is load data first,...
View Article