angulardart-community / ngdart_cli

A command-line tool for creating and managing AngularDart apps.
BSD 3-Clause "New" or "Revised" License
10 stars 4 forks source link

ngdart create still uses stagehand templates calling angular package #7

Closed dvorapa closed 2 years ago

dvorapa commented 2 years ago

Steps to reproduce

  1. Run pub global activate webdev && pub global activate ngdart && pub global activate ngdart_cli
  2. Run ngdart create myproject
  3. Open newly created myproject folder
  4. In its pubspec.yaml it still requires angular package, in dart files it imports package:angular/angular.dart

This should be changed to ngdart right? Or am I missing something?

GZGavinZhao commented 2 years ago

You're right that this should not happen. The reason is that just two weeks ago ngcomponents was still using angular, so I haven't updated the template yet. Now we can update the template to use ngdart.

Side note: you don't need to dart pub global activate ngdart.

GZGavinZhao commented 2 years ago

Fixed via 983f636ee93dff887009252ac1caa8bfcb6ac132. Feel free to reopen if the issue still exists after upgrading to v1.3.0.