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

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현