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
5
votes
0 answers

NativeScript / Angular nested routing issue with clearing history

I have an issue with routing in NativeScript 3.4 that drives me nuts. The idea of this test project is that the root app component is using a and then using nested angular routing using it loads a login parent…
Joni
  • 831
  • 7
  • 23
5
votes
2 answers

Error ENOENT: no such file or directory, scandir 'PATH_PORJECT\platforms\android\app\src\main\res'

I have an error I have a when running tns platform add android command. I can run other apps (new apps) but no my current and all happens after I install codeworks_android it change the path for the SDK then I reinstall native-script but I'm not…
5
votes
2 answers

How to convert an existing Angular 2 web app into a native script application

For about a year now i have been working on an Angular 2 web app as a hobby and have now at a point where I can start testing. I was wondering how i can use my existing angular 2 code and convert it over to a native script application. I have been…
Adam Saunier
  • 53
  • 2
  • 6
5
votes
1 answer

'TypeError: Path must be a string. Received undefined' after running npm run start.android in an angular environment

So using npm run start.android while using https://github.com/NathanWalker/angular-seed-advanced runs the project in android. I installed all the dependencies with npm install and prepared the project correctly. Unfortunately after using the command…
Fane
  • 1,978
  • 8
  • 30
  • 58
5
votes
1 answer

read image upload response

Im using this code for uploading images: https://github.com/NativeScript/sample-ImageUpload When i upload an image i got success notification. I'm trying to read response from server and also checked task's complete event: task.on("complete",…
Ali Dehqan
  • 461
  • 1
  • 8
  • 18
5
votes
1 answer

NativeScript/Angular - How to import global styles?

In a NativeScript app I'm trying to apply some global styles that will be shared across the app. This is my structure: - styles - partials - _buttons.scss - _exports.scss _buttons.scss: .flt-btn { border-radius:…
Chrillewoodz
  • 27,055
  • 21
  • 92
  • 175
5
votes
1 answer

Nativescript Back Button not redirecting to the correct page

I am trying to create an Angular 2 component for Android that displays the content of a specific path. For this I created the following app-routing.module: @NgModule({ imports: [ NativeScriptRouterModule.forRoot([ { path: '', component:…
Radu Cojocari
  • 1,759
  • 1
  • 22
  • 25
5
votes
5 answers

Getting Nativescript Telerik UI RadListView to work in Angular

TNS v2.5.0 I've imported LISTVIEW_DIRECTIVES into my app.module and my template looks like