MCPcopy Index your code
hub / github.com/angular/angular-cli / toObject

Method toObject

packages/angular/ssr/src/routes/route-tree.ts:161–163  ·  view source on GitHub ↗

* Converts the route tree into a serialized format representation. * This method converts the route tree into an array of metadata objects that describe the structure of the tree. * The array represents the routes in a nested manner where each entry includes the route and its associated metada

()

Source from the content-addressed store, hash-verified

159 * Each object includes the `route` and associated metadata of a route.
160 */
161 toObject(): SerializableRouteTreeNode {
162 return Array.from(this.traverse());
163 }
164
165 /**
166 * Constructs a `RouteTree` from an object representation.

Callers 3

enterFunction · 0.80
ng-routes_spec.tsFile · 0.80
route-tree_spec.tsFile · 0.80

Calls 2

traverseMethod · 0.95
fromMethod · 0.80

Tested by

no test coverage detected