Zagnieżdżone zachowanie routingu dla Ember.js

Czy ktoś może wyjaśnić zachowanie routera i zagnieżdżonych tras w Ember.js?

Jaki jest wynikowy adres URL, nazwa trasy, kontroler, trasa i szablon?

App.Router.map(function(){
    this.resource('profile');

    // URL: /profile
    // RouteName: profile
    // Controller: ProfileController
    // Route: ProfileRoute
    // Template: profile

    this.resource('artists', function(){

        // URL: /artists
        // RouteName: artists OR artists.index
        // Controller: ArtistsController OR ArtistsIndexController
        // Route: ArtistsRoute OR ArtistsIndexRoute
        // Template: artists OR artists/index

        this.resource('artists.artist', { path: ':artist_id' }, function(){

            // URL: /artists/:artist_id
            // RouteName: artists.index OR artist.index
            // Controller: ArtistsIndexController OR ArtistIndexController
            // Route: ArtistsIndexRoute OR ArtistIndexRoute
            // Template: artists/index OR artist/index

            this.resource('artist.tracks', function(){

                // URL: /artists/:artist_id/tracks
                // RouteName: artists.tracks OR artists.artist.tracks OR artist.tracks
                // Controller: ArtistsTracksController OR ArtistsArtistTracksController OR ArtistTracksController
                // Route: ArtistsTracksRoute OR ArtistsArtistTracksRoute OR ArtistTracksRoute
                // Template: artists/tracks OR artists/artist/tracks OR artist/tracks

                this.route('playing', { path: ':track_id' });

                    // URL: /artists/:artist_id/tracks/:track_id
                    // RouteName: tracks.index
                    // Controller: TracksIndexController
                    // Route: TracksIndexRouteRoute
                    // Template: tracks/index
            });
        });
    });
});

Jeśli chcesz zobaczyć cały kod na moim githubiehttps://github.com/Gerst20051/HnS-Wave/tree/master/src/stations

Plik JavaScript z mojego githubahttps://github.com/Gerst20051/HnS-Wave/blob/master/src/stations/js/app.js

Ten przewodnik jest tym, do czego się odwołujęhttp://emberjs.com/guides/routing/defining-your-routes/

Skopiowałem z tego moją strukturę aplikacjihttps://github.com/inkredabull/sonific8tr

Z góry dziękuję i pomoc zostanie doceniona przeze mnie i całą społeczność emberjs w autobusie walki emberjs!

questionAnswers(1)

yourAnswerToTheQuestion