Questions tagged [nativescript-angular]

Angular provides all of the plumbing necessary to create high quality, highly maintainable NativeScript apps. Reuse Angular concepts such as data binding, dependency injection, services, and routing to build native mobile apps. Use this tag to for Angular flavour of {NS} .

NativeScript features deep integration with modern Angular with full-stack features like integration with the Angular CLI, router support, code generation, webpack and more.

Learn more here.

945 questions
14
votes
2 answers

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

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…
Charlie Pope
  • 177
  • 1
  • 1
  • 8
14
votes
2 answers

ENOTEMPTY: directory not empty, rmdir

I am new in NativeScript, I tried to run my HelloWord app using NativeScript and Angular. I connected my android device and then i run command tns run android its how me following error. Error: ENOTEMPTY: directory not empty, rmdir…
11
votes
2 answers

Property 'throw' does not exist on type 'typeof Observable'

Iam learning nativescript+angular for developing android and ios apps.Iam working and learning basic services of nativescript+angular.In the post method of the my project i have the error 'property 'throw' does not exist on type 'typeof…
Arigarasuthan
  • 315
  • 1
  • 8
  • 17
7
votes
0 answers

NativeScript Storybook or alternative

Since a year, we are using storybook to develop our angular web applications, as well as our ionic cordova apps. Now we want to evaluate if NativeScript might be a better solution for our needs. We are currently wondering if it is possible to make…
pascalpuetz
  • 5,238
  • 1
  • 13
  • 26
7
votes
1 answer

How to fix @ViewChild ElementRef undefined in NativeScript Angular?

I am developing a mobile application with NativeScript (CLI v5.2.0) Angular (v7.2.3) and I have my @ViewChild ElementRef that was undefined. I checked the presence of ViewChild and ElementRef in the import of "@angular/core", renamed my @ViewChild…
7
votes
3 answers

Stop keyboard overlay when interacting with TextField in a NativeScript application

When working with a NativeScript application view where a user can enter input, the native application Keyboard Input overlays the TextField component. While this doesn't stop the user from entering text, it disrupts the UX flow and looks bad from a…
6
votes
0 answers

How to setup NativeScript Angular with Karma, karma-typescript, Jasmine, Mocha, Chai

I'm trying to configure karma.config.js to run with NativeScript Angular project following the official doc: https://docs.nativescript.org/angular/tooling/testing The problem is the tests always failed and always running node_modules/ and…
5
votes
2 answers

Nativescript error 'Cannot read property 'kind' of undefined' when run 'ng generate component'

I cannot add a new component to my Nativescript project, when I execute ng generate component faqs it returns the error: Option "entryComponent" is deprecated: Since version 9.0.0 with Ivy, entryComponents is no longer necessary. Cannot read…
Meztli
  • 184
  • 1
  • 9
5
votes
1 answer

error TS2339: Property 'getter' does not exist on type 'typeof ios'. in Nativescript 6 with angular

Upgrade to latest version of Nativescript 6 from version 5 code start giving error of getter of ios in utils. Property 'getter' does not exist on type 'typeof ios'. in Nativescript 6 with angular. This code is responsible for close keyboard at IOS.…
5
votes
0 answers

Nativescript Routing example from real world -Tabs with Modals, Modals over Modals and all in modules

I try to find out the way how to create modules, which is able to open in modal with options to navigate inside. Opened in TabView outlets or from another modal. like it demonstrated on this pic: I found lots of simple examples, but if I combine…
5
votes
2 answers

Using Angular libraries in Nativescript code sharing project

I'm trying to migrate an Angular app to a shared codebase with Nativescript using the new @nativescript/schematics, however, I'm having problems importing my Angular library when building the mobile version of the app. I used the angular-cli to…
5
votes
2 answers

In NativeScript with Angular, how can I get an interface element the id?

I'm trying to avoid unexpected behavior in a NativeScript application. When I walk into any screen that has a search field (SearchBar) system puts the focus on the search field automatically. Then I got help with a friend who gave me a function to…
4
votes
0 answers

Pod Install Command Failed in Nativescript Project

I am migrating the Nativescript project in current version(8.1.5). I had pod install command failed issue while running the project. I added the error screenshot for your reference Please help to fix this issue and save my time.
4
votes
0 answers

nativescript ios app crashes - attempting to change the getter of an unconfigurable property

I created a directive to disable the context menu on android and ios app in Nativescript. import { Directive, OnInit, OnDestroy, ElementRef, Renderer2 } from "@angular/core"; import { isIOS } from "tns-core-modules/platform"; import * as utils from…
Smokey
  • 1,857
  • 6
  • 33
  • 63
1
2 3
62 63