Questions tagged [angular2-nativescript]

NativeScript + Angular is an open source framework created by Telerik that makes native mobile app development easier for developers with web-dev background. It enables developers to use Angular to build native mobile applications for iOS and Android.

1264 questions
27
votes
1 answer

repositories.cfg could not be loaded in Windows 10

while installing native-script i got repositories.cfg could not be loaded error , please help me debugging it. It would help me if you can give the way to download the file externally. The code i used was..... @powershell -NoProfile -ExecutionPolicy…
22
votes
3 answers

How to change application name in NativeScript

I'm working with NativeScript from Telerik and I made an app with a debug name ("notiApp") but now I can't change the app's name in launcher and action bar. I already tried configuring my AndroidManifest.xml in /app/App_Resources/Android/ modifying…
16
votes
3 answers

Angular 2 do not refresh view after array push in ngOnInit promise

I created a NativeScript app with angular 2, i have an array of objects that i expect to see in the frontend of the application. the behaviour is that if i push an object into the array directly inside the ngOnInit() it works, but if i create a…
15
votes
3 answers

How can I specify or get the resource id of a nativescript textfield

We are using nativescript with angular for our mobile app. I want to use the Google Play pre-launch report feature, but our app requires a password to be entered. Google Play allows specifying a password but you need a resource name so the testing…
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…
10
votes
2 answers

Using collapse in listview items not removing the space for particular item view entirely

In listview items I'm using Visiblity concept in layout to perform visible and collapse. When performing Collapse, listview items not removing that view entirely from the layout. It is removing the item contents such as name and id but placing…
Stephen
  • 9,899
  • 16
  • 90
  • 137
10
votes
1 answer

iOS 3D Touch Support in Native Script

I want to utilize the 3D touch support in iOS through Native Script. Currently there is a Plugin for Quick actions, however i want to listen to ForceTouch actions of iOS devices. I want to do this using native iOS API but i am not sure how to get…
Idrees Khan
  • 7,702
  • 18
  • 63
  • 111
10
votes
6 answers

How to create angular 2 component into Nativescript Application?

I'm using nativescript with angular 2. I'm wondering how to rapidly create a ng component in a Nativescript Project. For example into Angular 2 to create a component we are using ng generate component hello. Is there a nativescript cli solution for…
3logy
  • 2,634
  • 8
  • 46
  • 99
10
votes
6 answers

NativeScript limitations

I´m evaluating differents mobile frameworks, and I think that nativescript is a good option. But I don't know if exists limitations on the development process. For example I had limitations on the styling (and that's not so important), but I want to…
Matías González
  • 1,366
  • 3
  • 15
  • 30
9
votes
2 answers

How to create a table in NativeScript with dynamic row and column count?

I'm trying to create a table or data grid with dynamic row and column count in my NativeScript application. I have some product categories and some products in these categories. Products have some specifications with respect to its belonging…
MÇT
  • 1,007
  • 13
  • 21
8
votes
1 answer

Nativescript: Navigate between router-outlets

For better introduction see the blog post about outlets. I use a TabView to navigate through my mobile app written with nativescript (ProtectedComponent).
Christian Kolb
  • 1,368
  • 2
  • 23
  • 43
8
votes
1 answer

Cannot find name 'Headers', 'RequestInit', 'Response'

I updated my nativescript from the 2.5.2 to the 3.0.3. And suddenly when I try to run the app I get the following errors: node_modules/tns-core-modules/tns-core-modules.d.ts(17,27): error TS2304: Cannot find name…
8
votes
3 answers

Angular2: Convert XML to JSON

I wanted to convert the XML I received from Web API response to JSON in Angular 2. The application is developed in Nativescript. Not able to find a solution for this.
8
votes
5 answers

Image button Nativescript and Angular

I need to create an Image button which includes a custom image and a label in {N} + Angular. Something like this: Here's my code. I'm using the stack layout inside the grid layout. I can't see the label below the image.
8
votes
2 answers

Nativescript / TypeScript error - error TS5053: Option 'sourceMap' cannot be specified with option 'inlineSourceMap'

{ "compilerOptions": { "module": "commonjs", "target": "es5", "sourceMap": true, "experimentalDecorators": true, "emitDecoratorMetadata": true, "noEmitHelpers": true, "noEmitOnError": true, "watch": true }, "exclude":…
1
2 3
84 85