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.
Questions tagged [angular2-nativescript]
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…

Cesar Vega
- 455
- 6
- 15
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

dottodot
- 1,479
- 1
- 16
- 24
5
votes
1 answer
Add Angular2 Material to Nativescript
I've created a basic Nativescript app using:
tns create my-project-name --template nativescript-angular-drawer-template
Now, I want to add Material Design to my app. According to the docs I ran the command npm install --save @angular/material and…

Emu
- 5,763
- 3
- 31
- 51
5
votes
0 answers
ios Share document into NativeScript app with CFBundleDocumentTypes
I want to open/share/send documents into my NativeScript app
for example (non NativeScript):
https://coderwall.com/p/83djxa/registering-your-app-to-be-able-to-open-images-from-other-apps
There is an android example here: Can I share to my…

Dan Black
- 1,167
- 3
- 14
- 20
5
votes
6 answers
Download a file from a URL to a user accessible location
I am building an app using Nativescript/Angular 2
I want to be able to download a file from a URL and save it to the device in a location the average user would have no problems finding it. I believe downloads would be the best place for this on…

RSM
- 14,540
- 34
- 97
- 144
5
votes
2 answers
Nativescript Switch prevent change event firing on initial binding
Hi my template is something like the below

Niyaz
- 2,677
- 3
- 21
- 40
5
votes
1 answer
Nativescript testing with Testbed not working
For the project we are currently starting up using native script with angular2, unit testing is essential to us. So I first tried to implement some simple for the given example of Groceries, just to get the hang of it. The very simple tests such as…

cinni
- 51
- 4
5
votes
2 answers
How to use Page Transition in NativeScript
I'm trying to use page transition from routerExtensions without success. (2.3.0)
I tried in js:
this.routerExtensions.navigate(
[
'myPage'
],
{
animated: true,
transition:
{
name: 'flip',
…

Odubuc
- 656
- 6
- 15
5
votes
2 answers
NativeScript No provider for Http
Am following the NativeScript Groceries Typescript Angular tutorial and I got stuck in chapter 3 with the following errors.
EXCEPTION: Error in ./AppComponent class AppComponent_Host - inline template:0:0
ORIGINAL EXCEPTION: No provider for…

ammezie
- 355
- 5
- 20