You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "<html><head></head><body><p>Transition the application into another route. The route may\nbe either a single route or route path:</p>\n<div class=\"highlight javascript\">\n <div class=\"ribbon\"></div>\n <div class=\"scroller\">\n <table class=\"CodeRay\">\n <tbody>\n <tr>\n <td class=\"line-numbers\"><pre>1\n2\n</pre></td>\n <td class=\"code\"><pre> aController.transition<span class=\"constructor\">ToRoute('<span class=\"params\">blogPosts</span>')</span>;\n aController.transition<span class=\"constructor\">ToRoute('<span class=\"params\">blogPosts</span>.<span class=\"params\">recentEntries</span>')</span>;</pre></td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n \n<p>Optionally supply a model for the route in question. The model\nwill be serialized into the URL using the <code>serialize</code> hook of\nthe route:</p>\n<div class=\"highlight javascript\">\n <div class=\"ribbon\"></div>\n <div class=\"scroller\">\n <table class=\"CodeRay\">\n <tbody>\n <tr>\n <td class=\"line-numbers\"><pre>1\n</pre></td>\n <td class=\"code\"><pre> aController.transition<span class=\"constructor\">ToRoute('<span class=\"params\">blogPost</span>', <span class=\"params\">aPost</span>)</span>;</pre></td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n \n</body></html>",
"description": "<html><head></head><body><p>Alernative to <code>transitionToRoute</code>. Transition the application into another route. The route may\nbe either a single route or route path:</p>\n<div class=\"highlight javascript\">\n <div class=\"ribbon\"></div>\n <div class=\"scroller\">\n <table class=\"CodeRay\">\n <tbody>\n <tr>\n <td class=\"line-numbers\"><pre>1\n2\n</pre></td>\n <td class=\"code\"><pre> aController.replace<span class=\"constructor\">Route('<span class=\"params\">blogPosts</span>')</span>;\n aController.replace<span class=\"constructor\">Route('<span class=\"params\">blogPosts</span>.<span class=\"params\">recentEntries</span>')</span>;</pre></td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n \n<p>Optionally supply a model for the route in question. The model\nwill be serialized into the URL using the <code>serialize</code> hook of\nthe route:</p>\n<div class=\"highlight javascript\">\n <div class=\"ribbon\"></div>\n <div class=\"scroller\">\n <table class=\"CodeRay\">\n <tbody>\n <tr>\n <td class=\"line-numbers\"><pre>1\n</pre></td>\n <td class=\"code\"><pre> aController.replace<span class=\"constructor\">Route('<span class=\"params\">blogPost</span>', <span class=\"params\">aPost</span>)</span>;</pre></td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n \n</body></html>",
"description": "<html><head></head><body><p>An array of other controller objects available inside\ninstances of this controller via the <code>controllers</code>\nproperty:</p>\n<p>For example, when you define a controller:</p>\n<div class=\"highlight javascript\">\n <div class=\"ribbon\"></div>\n <div class=\"scroller\">\n <table class=\"CodeRay\">\n <tbody>\n <tr>\n <td class=\"line-numbers\"><pre>1\n2\n3\n</pre></td>\n <td class=\"code\"><pre><span class=\"title class_\">App</span>.<span class=\"title class_\">CommentsController</span> = <span class=\"title class_\">Ember</span>.<span class=\"title class_\">ArrayController</span>.<span class=\"keyword\">extend</span>({\n <span class=\"symbol\">needs:</span> [<span class=\"string\">'post'</span>]\n});</pre></td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n \n<p>The application's single instance of these other\ncontrollers are accessible by name through the\n<code>controllers</code> property:</p>\n<div class=\"highlight javascript\">\n <div class=\"ribbon\"></div>\n <div class=\"scroller\">\n <table class=\"CodeRay\">\n <tbody>\n <tr>\n <td class=\"line-numbers\"><pre>1\n</pre></td>\n <td class=\"code\"><pre>this.get('controllers.post'); //<span class=\"built_in\"> instance </span>of App.PostController</pre></td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n \n<p>This is only available for singleton controllers.</p>\n</body></html>",
"description": "<html><head></head><body><p>Stores the instances of other controllers available from within\nthis controller. Any controller listed by name in the <code>needs</code>\nproperty will be accessible by name through this property.</p>\n<div class=\"highlight javascript\">\n <div class=\"ribbon\"></div>\n <div class=\"scroller\">\n <table class=\"CodeRay\">\n <tbody>\n <tr>\n <td class=\"line-numbers\"><pre>1\n2\n3\n4\n5\n6\n7\n</pre></td>\n <td class=\"code\"><pre>App.CommentsController = Ember.ArrayController.extend({\n needs: [<span class=\"string\">'post'</span>],\n postTitle: function(){\n <span class=\"keyword\">var</span> currentPost = <span class=\"keyword\">this</span>.<span class=\"keyword\">get</span>(<span class=\"string\">'controllers.post'</span>); <span class=\"comment\">// instance of App.PostController</span>\n <span class=\"keyword\">return</span> currentPost.<span class=\"keyword\">get</span>(<span class=\"string\">'title'</span>);\n }.property(<span class=\"string\">'controllers.post.title'</span>)\n});</pre></td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n \n</body></html>",
"description": "<html><head></head><body><p>The object to which actions from the view should be sent.</p>\n<p>For example, when a Handlebars template uses the <code>{{action}}</code> helper,\nit will attempt to send the action to the view's controller's <code>target</code>.</p>\n<p>By default, a controller's <code>target</code> is set to the router after it is\ninstantiated by <code>Ember.Application#initialize</code>.</p>\n</body></html>",
0 commit comments