url property
String
get
url
A string representation of the fully qualified module URL. When the
module is loaded locally, the value will be a file URL (e.g.
file:///path/module.ts
).
You can also parse the string as a URL to determine more information about how the current module was loaded. For example to determine if a module was local or not:
const url = new URL(import.meta.url);
if (url.protocol === "file:") {
console.log("this module was loaded locally");
}
Implementation
_i2.String get url => _i4.getProperty(
this,
'url',
);
set
url
(String value)
Implementation
set url(_i2.String value) {
_i4.setProperty(
this,
'url',
value,
);
}