How does angualr handle @ sign in view path?

I am looking at datalake aws sources. Their package.js contains:

'@package': {
    templateUrl: 'package/package.html',
    controller: 'PackageCtrl'
}

How do angle manipulators handle @package? If a path is required for the point controller package, it can simply determine packagewithout @, no?

UPDATED

The URL when this controller is running, http://127.0.0.1:8000/#/package/someId

+4
source share
1 answer

I found it in the ui-router docs:

if @ is used, then the view path is considered absolute

https://github.com/angular-ui/ui-router/wiki/Multiple-Named-Views#view-names---relative-vs-absolute-names

, @package index.html "package". , .

+2

Source: https://habr.com/ru/post/1685728/


All Articles