My Authors
Read all threads
@locks In the first moment I'm avoiding controllers. Because the team want to do unnecessary things, controllers it's one more thing to take care. If possible I want to use route directly. But the team wins :-( I will use controller, but I'm sad because...
@locks I'm sad because they will use controllers just for do redirects. The @nullvoxpopuli and official teach me about the use of router inject as service inside of component.

The controller in that case, isn't necessary. But the telling about responsibilities. They...
@locks @nullvoxpopuli They(my team and consultant) says me it's wrong use redirect inside de components. They suggest to use controllers and bubbling action to control de redirect. To make redirects more dynamically. Changing the return depending of place when component is instantiate.
@locks @nullvoxpopuli In my opinion, the use of controller for exceptions is really normal. But in that case, I think it's an addition of customization and compatibility unnecessary. I think the component can take care of that type of responsibility.
@locks @nullvoxpopuli The problem is the use of controllers for each page in the application to do that type of things. Te team is using "old" file organization, when each file is in a different folder. They using .hbs and .hs files of same component in different folders. I like the other way...
@locks @nullvoxpopuli I like the another way, when the files of same component is stored together in the same folder. The .hbs and the .js in the same folder helps me. I don't like to search of another file of component pair in different parts o file tree.
Missing some Tweet in this thread? You can try to force a refresh.

Enjoying this thread?

Keep Current with Wellington Torrejais da Silva (em 🏡)

Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!