📅  最后修改于: 2021-01-08 00:32:06             🧑  作者: Mango
app-route元素用于利用一个对象,该对象通过使用route属性来描述有关当前路由的状态。它将使用pattern属性确定状态,并确定与路线有关的一些数据,以及一条包含其余路线的尾部,如以下代码所示。
句法:
Index | Field | Description |
---|---|---|
1) | app-location | It is an element that provides synchronization between the browser location bar and the state of an app, and produces a route value. |
2) | pattern | The route.path property is matched by comparing it to the pattern property. |
3) | app-route | It sets the data property with an object, whose properties correspond to the parameters in pattern property. It is responsive to bi-directional changes to the data objects they produce. |
4) | tail | It represents the remaining part of the route state, after the pattern has been applied to a matching route. |
URL路径名的一部分在后端服务器的帮助下由应用程序位置路由使用。可以使用以下属性将应用程序位置配置为使用哈希部分。