EmberJs outlet inside multiple nested routeEmberJS - RequireJS - How to connect a view/template to an outlet of a child viewMultiple outlets in Ember.js v2 routerDynamically creating outletsNested routes rendering into same template/outlet breaks on browser back button clickNested routes and outlets within outletshow to define nested routes + ember not rendering template for nested routeResource with nested resource not loading on back button when using renderEmber DRY nested components with same actionsEmber - Nested child route loses model upon route refresh/reloadEmber: willTransition() in route breaks link-to helper active class

If the first law of thermodynamics ensures conservation of energy, why does it allow systems to lose energy?

How do I request a longer than normal leave of absence period for my wedding?

Singleton Design Pattern implementation in a not traditional way

See details of old sessions

Compelling story with the world as a villain

What is the best option for High availability on a data warehouse?

Is there any way to keep a player from killing an NPC?

Why is less being run unnecessarily by git?

Co-author responds to email by mistake cc'ing the EiC

Avoiding racist tropes in fantasy

How much code would a codegolf golf if a codegolf could golf code?

Confirming resignation after resignation letter ripped up

Is my soulless catatonic body a valid target for the Imprisonment spell?

How would one country purchase another?

Was Switzerland really impossible to invade during WW2?

Fried gnocchi with spinach, bacon, cream sauce in a single pan

Can realistic planetary invasion have any meaningful strategy?

What does どうかと思う mean?

Can't stopover at Sapporo when going from Asahikawa to Chitose airport?

Is there any practical application for performing a double Fourier transform? ...or an inverse Fourier transform on a time-domain input?

Is “I am getting married with my sister” ambiguous?

Are modern clipless shoes and pedals that much better than toe clips and straps?

Rule based coloured background for labeling in QGIS

Are there account age or level requirements for obtaining special research?



EmberJs outlet inside multiple nested route


EmberJS - RequireJS - How to connect a view/template to an outlet of a child viewMultiple outlets in Ember.js v2 routerDynamically creating outletsNested routes rendering into same template/outlet breaks on browser back button clickNested routes and outlets within outletshow to define nested routes + ember not rendering template for nested routeResource with nested resource not loading on back button when using renderEmber DRY nested components with same actionsEmber - Nested child route loses model upon route refresh/reloadEmber: willTransition() in route breaks link-to helper active class






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I do not strictly understand outlets and rendering templates in EmberJS. Until now I have been doing mostly CRUD operations or my routes weren't nested as many times as here so I haven't faced this problem yet.
Using outlet in parent route was enough.



The problem comes with my approach that I used to.
Everything works fine when I do visit routes admin/*, but when I try to get into e.g. admin/organization/id/user it renders an admin/organization template what I would want to avoid.
I suppose these things can be done using renderTemplate() function inside route.js but I can't figure these things out.



I recreated my routes structure in [twiddle]



Could someone explain to me that, please?










share|improve this question
































    0















    I do not strictly understand outlets and rendering templates in EmberJS. Until now I have been doing mostly CRUD operations or my routes weren't nested as many times as here so I haven't faced this problem yet.
    Using outlet in parent route was enough.



    The problem comes with my approach that I used to.
    Everything works fine when I do visit routes admin/*, but when I try to get into e.g. admin/organization/id/user it renders an admin/organization template what I would want to avoid.
    I suppose these things can be done using renderTemplate() function inside route.js but I can't figure these things out.



    I recreated my routes structure in [twiddle]



    Could someone explain to me that, please?










    share|improve this question




























      0












      0








      0








      I do not strictly understand outlets and rendering templates in EmberJS. Until now I have been doing mostly CRUD operations or my routes weren't nested as many times as here so I haven't faced this problem yet.
      Using outlet in parent route was enough.



      The problem comes with my approach that I used to.
      Everything works fine when I do visit routes admin/*, but when I try to get into e.g. admin/organization/id/user it renders an admin/organization template what I would want to avoid.
      I suppose these things can be done using renderTemplate() function inside route.js but I can't figure these things out.



      I recreated my routes structure in [twiddle]



      Could someone explain to me that, please?










      share|improve this question
















      I do not strictly understand outlets and rendering templates in EmberJS. Until now I have been doing mostly CRUD operations or my routes weren't nested as many times as here so I haven't faced this problem yet.
      Using outlet in parent route was enough.



      The problem comes with my approach that I used to.
      Everything works fine when I do visit routes admin/*, but when I try to get into e.g. admin/organization/id/user it renders an admin/organization template what I would want to avoid.
      I suppose these things can be done using renderTemplate() function inside route.js but I can't figure these things out.



      I recreated my routes structure in [twiddle]



      Could someone explain to me that, please?







      ember.js ember-cli






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 28 at 2:33









      rinold simon

      8271 gold badge8 silver badges30 bronze badges




      8271 gold badge8 silver badges30 bronze badges










      asked Mar 27 at 16:47









      Michał HabigierMichał Habigier

      4210 bronze badges




      4210 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          4















          Nested routes always have nested templates. To workaround, you can utilize index route, which exists on every level by default. Structure of your templates will be like this:



          -app
          --templates
          ---admin
          ----organization
          -----index.hbs //template for admin/organization/index route, url: /admin/organization
          -----user.hbs //template for admin/organization/user route, url: /admin/organization/user
          ----index.hbs //template for admin/index route, url: /admin


          Note that if some template file does not exist (in my example app/templates/admin.hbs, app/templates/admin/organization.hbs do not exist), it's the same as having .hbs file with only outlet in it






          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55382499%2femberjs-outlet-inside-multiple-nested-route%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            4















            Nested routes always have nested templates. To workaround, you can utilize index route, which exists on every level by default. Structure of your templates will be like this:



            -app
            --templates
            ---admin
            ----organization
            -----index.hbs //template for admin/organization/index route, url: /admin/organization
            -----user.hbs //template for admin/organization/user route, url: /admin/organization/user
            ----index.hbs //template for admin/index route, url: /admin


            Note that if some template file does not exist (in my example app/templates/admin.hbs, app/templates/admin/organization.hbs do not exist), it's the same as having .hbs file with only outlet in it






            share|improve this answer





























              4















              Nested routes always have nested templates. To workaround, you can utilize index route, which exists on every level by default. Structure of your templates will be like this:



              -app
              --templates
              ---admin
              ----organization
              -----index.hbs //template for admin/organization/index route, url: /admin/organization
              -----user.hbs //template for admin/organization/user route, url: /admin/organization/user
              ----index.hbs //template for admin/index route, url: /admin


              Note that if some template file does not exist (in my example app/templates/admin.hbs, app/templates/admin/organization.hbs do not exist), it's the same as having .hbs file with only outlet in it






              share|improve this answer



























                4














                4










                4









                Nested routes always have nested templates. To workaround, you can utilize index route, which exists on every level by default. Structure of your templates will be like this:



                -app
                --templates
                ---admin
                ----organization
                -----index.hbs //template for admin/organization/index route, url: /admin/organization
                -----user.hbs //template for admin/organization/user route, url: /admin/organization/user
                ----index.hbs //template for admin/index route, url: /admin


                Note that if some template file does not exist (in my example app/templates/admin.hbs, app/templates/admin/organization.hbs do not exist), it's the same as having .hbs file with only outlet in it






                share|improve this answer













                Nested routes always have nested templates. To workaround, you can utilize index route, which exists on every level by default. Structure of your templates will be like this:



                -app
                --templates
                ---admin
                ----organization
                -----index.hbs //template for admin/organization/index route, url: /admin/organization
                -----user.hbs //template for admin/organization/user route, url: /admin/organization/user
                ----index.hbs //template for admin/index route, url: /admin


                Note that if some template file does not exist (in my example app/templates/admin.hbs, app/templates/admin/organization.hbs do not exist), it's the same as having .hbs file with only outlet in it







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 27 at 22:31









                Gennady DogaevGennady Dogaev

                4,2981 gold badge9 silver badges18 bronze badges




                4,2981 gold badge9 silver badges18 bronze badges





















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55382499%2femberjs-outlet-inside-multiple-nested-route%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript