angulardart/angular

Null-safety in stable

Alex-A4 opened this issue Β· 17 comments

Hey!
Are there any plans to move null-safety to stable?
I see null-safety on google branch of repo, is it ready for production?

I am very grateful to Google for sharing its technologies.
However, we are dependent on all decisions in its surroundings.
This ends up impacting our decisions.
It really would be great if we had a long-term visibility for when the new version of Angulardart is planned to be released in production.

Hey!
Are there any plans to move null-safety to stable?
I see null-safety on google branch of repo, is it ready for production?

In the README: https://groups.google.com/a/dartlang.org/g/announce/c/Kz84KNBcf3U ;)

But I'm not agree with "strongly encourage you to consider Flutter" because I considerer it is not very stable for the web even in 2.0 (and it is not compatible with Internet Explorer).

@kevin-lot

I am a passionate developer for AngularDart, and I also use Flutter for mobile development, I also don’t agree with

"strongly encourage you to consider Flutter"

I believe that Flutter can never completely replace AngularDart because the flutter does not support first class WEB technologies like HTML and CSS. AngularDart is extremely productive in the web scenario.

I am starting to regret using angular with dart and not with typescript. The maintenance on this repository is really disappointed.

@krel024
I have used AngularDart a lot with dart 2.12 and it has worked very well for me without the null security, I have not missed it

I also think AngularDart is the better option for web.

For me personally two things are unattractive for flutter in the web:

  • I actually like the split of HTML/CSS/Dart - creates a cleaner component and single parts can be replaced
  • The flutter view simply is not real web... It's a canvas which feels fake and in the end it actually is.

I like that flutter is pushing dart but to especially create web content - AngularDart fits the task better.
Although I like parts of flutter, I think compiling angular components into a native app would have been a much
better option. I can live with the actual situation but AngularDart should definitely stay alive!

@KevinBLT
I totally agree with you

I have to upgrade our web app to the latest version of angular because we have some shared code between our mobile apps written in Flutter and our Web apps written in angular dart.

We're currently migrating the shared package to null safety and our mobile apps to Flutter 2.0 but now the web apps require a new version of angular with updated dependencies to work with the shared package.

I checked the master branch on this repo and it has all the upgraded dependencies I need so I tried to do this:

  angular:
    git:
      url: git@github.com:angulardart/angular.git
      ref: master
      path: angular
  angular_forms:
    git:
      url: git@github.com:angulardart/angular.git
      ref: master
      path: angular_forms
  angular_router:
    git:
      url: git@github.com:angulardart/angular.git
      ref: master
      path: angular_router

But I got the following error:

Resolving dependencies...
Because every version of angular_router from git depends on angular from hosted and **** depends on angular from git, angular_router from git is forbidden.
So, because **** depends on angular_router from git, version solving failed.
exit code 1

Anyone has a valid workaround?

Try adding the following after the dev_dependencies in the pubspec file

dependency_overrides:
  angular_router:
    git:
      url: git@github.com:angulardart/angular.git
      ref: master
      path: angular_router

any news on this?

our company needs to upgrade to null safety and we are also pondering about forking and improve AngularDart/Components, but we can do neither until it is at null safety level.

We are also awaiting this.
I am considering pushing something like angulardart_temp or similar to pub.dev to push code from git and avoid package dependency errors as shown above. In the end I don't understand why no one at google can ... like click the button to publish? I am sure they are using some up-to-date stable internally.

I have begun publishing the null safe versions of these packages

I have begun publishing the null safe versions of these packages

Better late than never.
Thanks!

I have begun publishing the null safe versions of these packages

Is angular_components in the list? πŸ₯Ί

It's about time πŸŽŠπŸŽ‰

Thanks a lot! Finally! :D

@kevmoo
Thank you very much, I work with a lot of AngularDart projects in my organization as well as other teams I know in other companies please don't leave AngularDart abandoned, AngularDart is an excellent technology for web development.