File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -66,12 +66,20 @@ export class EditableTreeNode {
66
66
67
67
/**
68
68
* Return a Map of the files associated to the current route. The key of the map represents the name of the view (Vue
69
- * Router feature) while the value is the file path. By default, the name of the view is `default`.
69
+ * Router feature) while the value is the **resolved** file path.
70
+ * By default, the name of the view is `default`.
70
71
*/
71
72
get components ( ) {
72
73
return this . node . value . components
73
74
}
74
75
76
+ /**
77
+ * Alias for `route.components.get('default')`.
78
+ */
79
+ get component ( ) {
80
+ return this . node . value . components . get ( 'default' )
81
+ }
82
+
75
83
/**
76
84
* Name of the route. Note that **all routes are named** but when the final `routes` array is generated, routes
77
85
* without a `component` will not include their `name` property to avoid accidentally navigating to them and display
You can’t perform that action at this time.
0 commit comments