Skip to content

Angular 2.0 support for NativeScript apps #103

Closed

Description

@valentinstoychev

Angular team is working on the next major update of Angular framework called Angular 2.0 which will be optimized for mobile applications. We are working closely with the Angular team to enable it in a NativeScript app and we created a POC application which you can see here.

Please vote for this feature in our portal

Activity

  1. ch-weiss commented on May 1, 2015

    @ch-weiss

    This is great news. Will there also be a sample in TypeScript since Angular 2 is being developed in TypeScript as well?

  2. pitaj commented on May 1, 2015

    @pitaj

    Ewwwwwwww

    👎

  3. RangerMauve commented on May 1, 2015

    @RangerMauve

    It'd be nice if any Angular stuff was kept separate from NativeScript core. NativeScript is really appealing because it's fairly low level and doesn't necessarily force you to use a specific framework.

  4. NathanaelA commented on May 1, 2015

    @NathanaelA
  5. ch-weiss commented on May 1, 2015

    @ch-weiss

    I think it would be helpful to bring this discussion to a more concrete level. I would like to have any variant of the MVC pattern. If this is realized by using Angular this is fine for me. What are the alternatives?

  6. RangerMauve commented on May 1, 2015

    @RangerMauve

    Well, I'm personally not against Angular for writing apps with NativeScript. It's just that having Angular integrated with the core would mean that NativeScript's focus would be on Angular rather than low level APIs. If NativeScript itself isn't tied to anything in particular, it'll be much more useful for a variety of applications and would enable much more innovation than stocking to a framework that tries to abstract everything away.

    I propose having two projects. NativeScript for the more low level bindings to the different components, and then NativeScript-Angular for the high level Angular stuff.

    Separating the two would also allow for people to use whatever other tools they already use. For instance if people want to convert Ember or React apps to use NativeScript. It'd be a lot more appealing of a platform if it wasn't solely focused on a particular framework.

  7. pitaj commented on May 1, 2015

    @pitaj
  8. ch-weiss commented on May 1, 2015

    @ch-weiss

    I also support the idea of seperation and keeping this out of the core.

  9. valentinstoychev commented on May 2, 2015

    @valentinstoychev
    Author

    Just to shed some light here. We are not talking integrating Angular in NativeScript. We are talking Angular support in NativeScript, which means that if you are a developer who loves Angular you will be able to use it with NativeScript. But if you don't want to use Angular, just do not include it in your project and use teh default {N} APIs :).

    Still this is a very very early work and as you know Angular 2 is also not being released yet, so everything can change.

    Our short term idea is to provide a module that will make the integration between Angular and NativeScript natural. Angular will not be part of the core.

    @ch-weiss We will provide a TypeScript sample in the future. The thing is that currently Angular is working with TypeScript 1.5, which is still not official and we dont wan't to put it in our CLI for the moment.

    I hope this helps and makes sense.

    Love the discussion!

  10. ch-weiss commented on May 2, 2015

    @ch-weiss

    @valentinstoychev Thanks for shedding light in ☺ I like very much what you are doing and the way you are doing it.
    Speaking about TypeScript I know that 1.5 is still beta and Angular 2 is even alpha. I am not asking for cli support for TypeScript yet if you do not want to do it until the 1.5 production version is released. But the early developer preview of Angular 2 is released in TypeScript. Therefore I would appreciate it to have a starter package or sample in TypeScript for download in Github. Thank you for considering it.

  11. ch-weiss commented on May 2, 2015

    @ch-weiss

    @pitaj Talking about alternatives. Please correct me if I am wrong but to my understanding it is not so easy to find an alternative because most frameworks rely on DOM for the view. Therefore just frameworks can be considered that seperate their runtime into two layers an application layer and a render layer like Angular 2 does it to make it possible to be used with native approaches:
    https://docs.google.com/document/d/1M9FmT05Q6qpsjgvH1XvCm840yn2eWEg0PMskSQz7k4E/edit#heading=h.owsdtw3w8t06
    Of course there are many nice frameworks out there but unfortunately they can not be used with NS easily. For example I also like Aurelia but as far as I know they do not have this seperation and just render into virtual DOM like most other frameworks. Do I see this correct or do I have missed something?

  12. pitaj commented on May 2, 2015

    @pitaj
  13. Sibling10 commented on May 4, 2015

    @Sibling10

    "... a module that will make the integration between Angular and NativeScript natural.." is perfect!

  14. changed the title [-]Angular 2.0 as an application framework for NativeScript apps[/-] [+]Angular 2.0 support for NativeScript apps[/+] on May 4, 2015
  15. SynerG commented on May 6, 2015

    @SynerG

    Great approach. Great for Angular and great for NativeScript. I would love to use my AngularJS skills to develop mobile apps that are not hybrid, but supported by NativeScript

  16. 34 remaining items

  17. afortaleza commented on Oct 21, 2015

    @afortaleza

    Is it wise to start a new project to go in production in 3 months with Angular 2 and {N}?

  18. valentinstoychev commented on Oct 21, 2015

    @valentinstoychev
    Author

    Hey @afortaleza, the Angular 2.0 framework is still not ready for production and I will advise you to wait at least until from Google announce the first official release of Angular 2.0. For the moment a lot of things are changing and you should use these libraries only for learning purposes and to get a sneak peek at what is coming next.

  19. afortaleza commented on Oct 21, 2015

    @afortaleza

    @valentinstoychev , I'll follow your advice, thank you very much :)

  20. alexrainman commented on Oct 21, 2015

    @alexrainman

    I think AngularJS must be an optional choice, like a plugin. I like the way {N} is right now. Simple and low level!

  21. valentinstoychev commented on Oct 22, 2015

    @valentinstoychev
    Author

    Yes - it is an optional choice. Actually the preview version of the plugin is already available - https://www.npmjs.com/package/nativescript-angular

  22. valentinstoychev commented on Oct 22, 2015

    @valentinstoychev
    Author

    You can watch the recording from our NativeScript and Angular 2.0 from the AngularConnect conference here - https://www.youtube.com/watch?v=4SbiiyRSIwo

  23. removed this from the 1.5 milestone on Nov 26, 2015
  24. atanasovg commented on Nov 26, 2015

    @atanasovg
    Contributor

    Use the https://github.com/NativeScript/nativescript-angular repo for further feedback on the integration.

  25. added a commit that references this issue on Mar 20, 2019
  26. lock commented on Aug 30, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  27. locked and limited conversation to collaborators on Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions