From 2809c5a3ded520a55871cd8011b61f2b5f8d6306 Mon Sep 17 00:00:00 2001 From: IngiRodr <30906988+IngiRodr@users.noreply.github.com> Date: Thu, 24 Oct 2019 15:23:33 -0500 Subject: [PATCH 1/6] merging Sidekick and NS docs --- .../create-development-provisioning.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/sidekick/user-guide/code-signing/code-signing-for-ios/create-development-provisioning.md b/docs/sidekick/user-guide/code-signing/code-signing-for-ios/create-development-provisioning.md index 8f7b60260..fa6040ab3 100644 --- a/docs/sidekick/user-guide/code-signing/code-signing-for-ios/create-development-provisioning.md +++ b/docs/sidekick/user-guide/code-signing/code-signing-for-ios/create-development-provisioning.md @@ -23,9 +23,8 @@ You can create a development provisioning profile in the [iOS Dev Center](https: ## Procedure 1. Open [iOS Dev Center](https://developer.apple.com/membercenter) in your favorite browser and log in. 1. Click **Certificates, Identifiers & Profiles**. -1. In the drop-down menu in the top left corner, verify that **iOS, tvOS, watchOS** is selected. -1. In the left-hand sidebar, select **Provisioning Profiles** → **Development**. -1. Click **+**. +1. In the left-hand sidebar, select **Profiles**. +1. Click **+** blue button next to the subtitle bar **Profiles** to add a new Profile. 1. Select **iOS App Development** and click **Continue**. 1. Select an App ID to associate with the provisioning profile and click **Continue**.
To be able to use one development provisioning profile across multiple apps, select a wildcard App ID, if available. 1. Select one or more certificates for development to include in the provisioning profile and click **Continue**.
Only certificates for development are listed. @@ -36,4 +35,4 @@ You can create a development provisioning profile in the [iOS Dev Center](https: ## Next Steps -Now that you have created a development certificate and provisioning profile, you can [Deploy and Test Your App on a Connected Device]({% slug deploy-on-device %}). \ No newline at end of file +Now that you have created a development certificate and provisioning profile, you can [Deploy and Test Your App on a Connected Device]({% slug deploy-on-device %}). From cf11cc3e2ccbd0f7046027596a41313e4bba7aa2 Mon Sep 17 00:00:00 2001 From: IngiRodr <30906988+IngiRodr@users.noreply.github.com> Date: Thu, 24 Oct 2019 16:03:52 -0500 Subject: [PATCH 2/6] merging Sidekick and NS docs --- .../create-distribution-provisioning.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/sidekick/user-guide/code-signing/code-signing-for-ios/create-distribution-provisioning.md b/docs/sidekick/user-guide/code-signing/code-signing-for-ios/create-distribution-provisioning.md index f2ccab493..e4c29459c 100644 --- a/docs/sidekick/user-guide/code-signing/code-signing-for-ios/create-distribution-provisioning.md +++ b/docs/sidekick/user-guide/code-signing/code-signing-for-ios/create-distribution-provisioning.md @@ -21,15 +21,14 @@ You can create a distribution provisioning profile in the [iOS Dev Center](https 1. Open [iOS Dev Center](https://developer.apple.com/membercenter) in your favorite browser and log in. 1. Click **Certificates, Identifiers & Profiles**. -1. In the drop-down menu in the top left corner, verify that **iOS, tvOS, watchOS** is selected. -1. In the left-hand sidebar, select **Provisioning Profiles** → **App Store**. -1. Click **+**. +1. In the left-hand sidebar, select **Profiles**. +1. Click **+** blue button next to subtitle bar **Profiles** to add a new Profile. 1. Select **App Store** and click **Continue**. 1. Select an **App ID** to associate with the provisioning profile and click **Continue**. -1. Select one or more certificates for distribution to include in the provisioning profile and click **Continue**.
Only certificates for distribution are listed. +1. Select a certificate for distribution to include in the provisioning profile and click **Continue**.
Only certificates for distribution are listed. 1. Enter a name for the profile and click **Continue**. 1. (Optional) Click **Download** to download the provisioning profile. ## Next Steps -Now that you have created a distribution certificate and provisioning profile, you can build your app in Release configuration and publish the produced app package to the App Store. For more information, see [Cloud Builds]({% slug cloud-build %}) and [Local Builds]({% slug local-build %}). \ No newline at end of file +Now that you have created a distribution certificate and provisioning profile, you can build your app in Release configuration and publish the produced app package to the App Store. For more information, see [Cloud Builds]({% slug cloud-build %}) and [Local Builds]({% slug local-build %}). From a48d7c1a7f8a8618b128ad41c46cc3ef98a686a6 Mon Sep 17 00:00:00 2001 From: IngiRodr <30906988+IngiRodr@users.noreply.github.com> Date: Thu, 31 Oct 2019 09:37:20 -0500 Subject: [PATCH 3/6] merging Sidekick and NS docs --- .../create-development-certificate.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/sidekick/user-guide/code-signing/code-signing-for-ios/create-development-certificate.md b/docs/sidekick/user-guide/code-signing/code-signing-for-ios/create-development-certificate.md index 44f6c85c6..6226771d3 100644 --- a/docs/sidekick/user-guide/code-signing/code-signing-for-ios/create-development-certificate.md +++ b/docs/sidekick/user-guide/code-signing/code-signing-for-ios/create-development-certificate.md @@ -22,17 +22,15 @@ You can create a development certificate in the [iOS Dev Center](https://develop 1. Open [iOS Dev Center](https://developer.apple.com/membercenter) in your favorite browser and log in. 1. Click **Certificates, Identifiers & Profiles**. -1. In the drop-down menu in the top left corner, verify that **iOS, tvOS, watchOS** is selected. -1. In the left-hand sidebar, select **Certificates** → **Development**. -1. Click **+**. +1. In the left-hand sidebar, select **Certificates**. +1. Click **+** blue button next to the subtitle bar **Certificates** to add a new Profile. 1. Select **iOS App Development** and click **Continue**. -1. On the About Creating a Certificate Signing Request (CSR) page, click **Continue**. -1. On the Generate your certificate page, click **Choose File**. +1. On the Upload a Certificate Signing Request page, click **Choose File**. 1. Browse to the location where the `CSR` file for your code signing request is stored, select it and confirm the upload. 1. Click **Continue**. 1. (Optional) Click **Download** to download your certificate. -1. Click **Done**. +1. Click **All Certificates**. ## Next Steps -Create a **[development provisioning profile]({% slug create-development-provisioning %})** in the [iOS Dev Center](https://developer.apple.com/membercenter). \ No newline at end of file +Create a **[development provisioning profile]({% slug create-development-provisioning %})** in the [iOS Dev Center](https://developer.apple.com/membercenter). From 59620a1dd2800a3e57c6915c15436ba01793c086 Mon Sep 17 00:00:00 2001 From: IngiRodr <30906988+IngiRodr@users.noreply.github.com> Date: Thu, 31 Oct 2019 09:50:08 -0500 Subject: [PATCH 4/6] merging Sidekick and NS docs --- .../code-signing-for-ios/create-development-certificate.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sidekick/user-guide/code-signing/code-signing-for-ios/create-development-certificate.md b/docs/sidekick/user-guide/code-signing/code-signing-for-ios/create-development-certificate.md index 6226771d3..b1a321f3e 100644 --- a/docs/sidekick/user-guide/code-signing/code-signing-for-ios/create-development-certificate.md +++ b/docs/sidekick/user-guide/code-signing/code-signing-for-ios/create-development-certificate.md @@ -23,7 +23,7 @@ You can create a development certificate in the [iOS Dev Center](https://develop 1. Open [iOS Dev Center](https://developer.apple.com/membercenter) in your favorite browser and log in. 1. Click **Certificates, Identifiers & Profiles**. 1. In the left-hand sidebar, select **Certificates**. -1. Click **+** blue button next to the subtitle bar **Certificates** to add a new Profile. +1. Click **+** blue button next to the subtitle bar **Certificates** to add a new Certificate. 1. Select **iOS App Development** and click **Continue**. 1. On the Upload a Certificate Signing Request page, click **Choose File**. 1. Browse to the location where the `CSR` file for your code signing request is stored, select it and confirm the upload. From e231e7f08389e092e60bd2c0d21eaf1a050a579a Mon Sep 17 00:00:00 2001 From: Ingrid Rodriguez Date: Tue, 27 Oct 2020 13:51:43 -0500 Subject: [PATCH 5/6] update documentation --- docs/cookbook/formatted-string-ng.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/cookbook/formatted-string-ng.md b/docs/cookbook/formatted-string-ng.md index a53afce54..ba683880c 100644 --- a/docs/cookbook/formatted-string-ng.md +++ b/docs/cookbook/formatted-string-ng.md @@ -19,6 +19,33 @@ NativeScript has a special class called [FormattedString](/api-reference/classes ``` +Binding (Two-way) + +```HTML + +``` +```TypeScript +import { Component } from '@angular/core'; + +@Component({ + selector: 'ns-main', + moduleId: module.id, + templateUrl: './main.component.html', +}) +export class MainComponent { + public title: string; + + constructor() { + this.title = "Hello Word"; + } +} +``` + + This syntax differs from the full syntax of FormattedString used in NativeScript Core, shown below, which does not work in Angular apps: ```HTML From ec589c47decf2544ef27cecc8356950149644c65 Mon Sep 17 00:00:00 2001 From: Ingrid Rodriguez Date: Tue, 27 Oct 2020 16:41:02 -0500 Subject: [PATCH 6/6] add ternary operator usage --- docs/ui/styling.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/ui/styling.md b/docs/ui/styling.md index 4c9339994..b30fee3be 100644 --- a/docs/ui/styling.md +++ b/docs/ui/styling.md @@ -126,6 +126,27 @@ After you have set the default CSS for the page, you can add to it using two met {% endnativescript %} {% angular %} +### Ternary operator + +```HTML + +``` +```CSS +/* myCustomComponent.css */ +.text-blue { + color: blue; +} +.text-red { + color: red; +} +``` +```TypeScript +public changeColor = true; +onChangeColor(args: EventData) { + this.changeColor = !this.changeColor; +} +``` + ### Component-specific CSS In an Angular application everything is a component, therefore, it is a very common task to add some CSS code that should only apply to one component. Adding component-specific CSS in a NativeScript-Angular app involves using a component’s `styles` or `styleUrls` property.