nativescript-angular

Expected 2 arguments, but got 1.ts(2554) core.d.ts(8064, 47): An argument for 'opts' was not provided

南楼画角 提交于 2019-12-05 20:20:44
Error Expected 2 arguments, but got 1.ts(2554) core.d.ts(8064, 47): An argument for 'opts' was not provided. Code is from NativeScript Marketplace https://play.nativescript.org/?template=play-ng&id=Hqp5UQ&v=3073 I've brought the code over verbatim and I"m getting the errors in my export class on @ViewChild("password") password: ElementRef; @ViewChild("confirmPassword") confirmPassword: ElementRef; Does anyone know how to resolve this? import { Component, ElementRef, ViewChild } from "@angular/core"; import { alert, prompt } from "tns-core-modules/ui/dialogs"; import { Page } from "tns-core

Load Local HTML/JavaScript/CSS Inside NativeScript App

回眸只為那壹抹淺笑 提交于 2019-12-02 04:43:13
问题 With a NativeScript iOS and Android app using Angular, how do I load, inside of a WebView, a locally stored html file that has JS and CSS references? I am able to display the WebView but I get the error that the file is not found because I do not know where to point the src from my component. Currently I have the files inside src/assets and in there is the index.html Is there a more appropriate place to store these files within the app? Is there a better way to display this than a WebView?

Load Local HTML/JavaScript/CSS Inside NativeScript App

送分小仙女□ 提交于 2019-12-02 00:41:25
With a NativeScript iOS and Android app using Angular, how do I load, inside of a WebView, a locally stored html file that has JS and CSS references? I am able to display the WebView but I get the error that the file is not found because I do not know where to point the src from my component. Currently I have the files inside src/assets and in there is the index.html Is there a more appropriate place to store these files within the app? Is there a better way to display this than a WebView? How do I reference this file as the source of a WebView? I will also be needing to know how to reference

Assertion failure and NSInternalInconsistencyException in NativeScript

假如想象 提交于 2019-11-27 09:53:10
Can anyone help me on this? I am trying to run my NativeScript + Angular app in my iPhone. Terminal Creation Created tns create mysample --ng app, added iOS platform, successfully built with warnings and run time error arising when I tried to run in Xcode. Playground Creation Downloaded NativeScript + Angular app from NativeScriptPlayground , added iOS platform, successfully built with warnings and run time error arising when I tried to run in Xcode. Issue: In both cases, app is successfully installed in my device but when launch screen is launched, then immediately app is getting crashed.

Assertion failure and NSInternalInconsistencyException in NativeScript

两盒软妹~` 提交于 2019-11-26 14:55:07
问题 Can anyone help me on this? I am trying to run my NativeScript + Angular app in my iPhone. Terminal Creation Created tns create mysample --ng app, added iOS platform, successfully built with warnings and run time error arising when I tried to run in Xcode. Playground Creation Downloaded NativeScript + Angular app from NativeScriptPlayground , added iOS platform, successfully built with warnings and run time error arising when I tried to run in Xcode. Issue: In both cases, app is successfully