Skip to content

Commit

Permalink
import used instead of codeFile
Browse files Browse the repository at this point in the history
  • Loading branch information
enchev committed Nov 7, 2016
1 parent 4ff1fe6 commit 07c5d31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ To access variables or functions from the user interface, you need to declare th

NativeScript sets each attribute value in the XML declaration to a respective property or an event of the component. If a respective property does not exist, NativeScript sets the attribute value as an expando object.

Starting with NativeScript 1.3 you can specify code and CSS files for your Page XML using `codeFile` and `cssFile` attributes:
You can specify code and CSS files for your Page XML using `import` and `cssFile` attributes:
```XML
<Page codeFile="~/your-code-file" cssFile="~/your-styles.css">
<Page import="~/your-code-file" cssFile="~/your-styles.css">
<StackLayout>
...
</StackLayout>
Expand Down

0 comments on commit 07c5d31

Please sign in to comment.