-
- Notifications
You must be signed in to change notification settings - Fork 446
Updating documentation related to mod30 changes #746
Changes from 5 commits
75c1632 85db518 3b6fcc3 9c2fb5e b8125c5 e8569fe bafcb3d 7bce343 File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| | @@ -51,7 +51,7 @@ Components are the fundamental building blocks of NativeScript applications buil | |
| ### Component example | ||
| | ||
| ``` TypeScript | ||
| import {Component} from "@angular/core"; | ||
| import { Component } from "@angular/core"; | ||
| | ||
| @Component({ | ||
| selector: "main-component", | ||
| | @@ -148,7 +148,7 @@ application.start({ moduleName: "main-page" }); | |
| iOS calls UIApplication and triggers the application main event loop. | ||
| */ | ||
| | ||
| import application = require("application"); | ||
| import * as application from "application"; | ||
| ||
| application.start({ moduleName: "main-page" }); | ||
| ``` | ||
| {% endnativescript %} | ||
| | @@ -234,7 +234,7 @@ application.start({ moduleName: "main-page" }); | |
| ``` | ||
| {% endnativescript %} | ||
| ``` TypeScript | ||
| import application = require("application"); | ||
| import * as application from "application"; | ||
| application.on(application.launchEvent, function (args: application.ApplicationEventData) { | ||
| if (args.android) { | ||
| // For Android applications, args.android is an android.content.Intent class. | ||
| | @@ -360,7 +360,7 @@ application.start(); | |
| ``` | ||
| {% endnativescript %} | ||
| ``` TypeScript | ||
| import application = require("application"); | ||
| import * as application from "application"; | ||
| | ||
| // Android activity events | ||
| if (application.android) { | ||
| | @@ -435,7 +435,7 @@ application.start(); | |
| ``` | ||
| {% endnativescript %} | ||
| ``` TypeScript | ||
| import application = require("application"); | ||
| import * as application from "application"; | ||
| class MyDelegate extends UIResponder implements UIApplicationDelegate { | ||
| public static ObjCProtocols = [UIApplicationDelegate]; | ||
| | ||
| | @@ -481,8 +481,8 @@ exports.pageLoaded = pageLoaded; | |
| ``` | ||
| {% endnativescript %} | ||
| ``` TypeScript | ||
| import observable = require("data/observable"); | ||
| import applicationSettings = require("application-settings"); | ||
| import * as observable from "data/observable"; | ||
| ||
| import * as applicationSettings from "application-settings"; | ||
| Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here | ||
| // Event handler for Page "loaded" event attached in main-page.xml. | ||
| export function pageLoaded(args: observable.EventData) { | ||
| applicationSettings.setString("Name", "John Doe"); | ||
| | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should have comma at the end of the row