Skip to content

Commit 5e555bc

Browse files
author
Hristo Hristov
authored
More application module changes
1 parent 100d755 commit 5e555bc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Modules30Changes.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,20 @@ We are using the following import statement for the code samples in this section
3535
import * as application from "tns-core-modules/application";
3636
```
3737

38+
`application.mainEntry` was removed.
39+
40+
`application.mainModule` was removed.
41+
42+
Pass `mainModule` or `mainEntry` to `application.start` method.
43+
If you need access to `mainEntry` use:
44+
* `application.getMainEntry(): NavigationEntry`
45+
46+
The string `mainModule` is implicitly converted to `NavigationEntry` and set to `mainEntry`.
47+
48+
`application.resources` was removed, use get/set methods:
49+
* `application.getResources(): any`
50+
* `application.setResources(res: any)`
51+
3852
`application.cssFile` was removed, use get/set methods:
3953
* `application.getCssFileName(): string`
4054
* `application.setCssFileName(file: string)`

0 commit comments

Comments
 (0)