Questions tagged [angular-dart]

AngularDart is a web app framework that focuses on productivity, performance, and stability.

AngularDart is a web-app framework for creating structured web applications in Dart.

AngularDart is distinct from Angular. It shares concepts and some API, but differs in implementation – taking advantage of Dart features such as classes and annotations.

Features

  • Reusable components
  • Bind models (Dart classes) to HTML markup
  • Deep linking
  • Form validation
  • Dependency injection
  • Testable

Links

1298 questions
7
votes
2 answers

No provider found for RadioControlRegistry with simple component

I have simple Angular-Dart component, trying connect property to ngModel in radio input, app compiling correctly, but browser console gives me error: No provider found for RadioControlRegistry: RadioControlValueAccessor -> RadioControlRegistry. the…
PavelS57
  • 71
  • 3
7
votes
3 answers

Use SCSS style files within AngularDart 5 and Dart 2

I’m working with Dart 2 and AngularDart 5. ⚠ I searched online about my question, but I didn’t find a satisfactory answer. ❔ Can somebody explain all the steps I need to include and to work with SCSS style files within my AngularDart application? I…
Marco
  • 593
  • 8
  • 23
7
votes
2 answers

How To Setup AngularDart5 on VS Code

I have searched far and wide on documentation on how to effectively set up Angular Dart 5 on Visual Studio Code but found nothing conclusive so far. Places I've searched already: Youtube StackOverflow https://webdev.dartlang.org - The documentation…
Adifyr
  • 2,649
  • 7
  • 41
  • 62
7
votes
1 answer

Is it possible to use Flutter-shipped Dart SDK as SDK for AngularDart?

I've recently downloaded Flutter SDK for Android Development, and I'd be curious to test a bit AngularDart SDK too. Is it possible to use Flutter-shipped Dart SDK even for AngularDart development, or it's in some way specific and customized to run…
dedeswim
  • 95
  • 7
7
votes
1 answer

Changing App Layout Drawer persistent to temporary at media change in AngularDart

I have an App Layout of angular components in my AngularDart project. How can I change the drawer of App layout from persistent to temporary at the change of media screen?
Tushar Rai
  • 2,371
  • 4
  • 28
  • 57
7
votes
2 answers

Benefits of an abstract class with a factory constructor?

I've recently run into some examples that make use of abstract classes as interfaces but also add factory constructors to the abstract interface so it can in a sense be "newed" up. For example: abstract class WidgetService { factory…
Darryl Faint
  • 125
  • 1
  • 1
  • 6
7
votes
1 answer

How to inject services into RouteInitializerFn (new routing DSL)

I'm switching my app over to the new routing DSL. Specifically, I want to do something like this with preEnter: final RouteInitializerFn routes =(Router router, ViewFactory views) { views.configure({ 'chat': ngRoute( path: '/chat', …
w.brian
  • 16,296
  • 14
  • 69
  • 118
7
votes
1 answer

How to navigate user to sign in page when not logged in

I have a structural question regarding angulardart and sign in flows. I have a service that talks a server and has methods like login(), logout(), loggedIn(). That is all working really nicely in angular but i am looking for a best practice way to…
Moritz
  • 10,124
  • 7
  • 51
  • 61
7
votes
2 answers

AngularDart Batarang alternative

Do you know any good Angular.dart alternative for Angular.js Batarang? Would be much easier to debug scopes, bindings.
gabor.orosz
  • 433
  • 8
  • 20
7
votes
3 answers

Too large JS-file generated

I have this code: // main.dart import "package:angular/angular.dart"; main () => ngBootstrap(); I make dart2js --minify --out=main.dart.js main.dart Then i have main.dart.js with size 2.6 MiB (2,744,320 bytes). It is not normal. What i'm doing…
media-slave24
  • 256
  • 2
  • 7
6
votes
0 answers

How to Create Web Components in Dart

1. Context Creating Web Components is possible in vanilla JS by: Creating a class that extends HTMLElement And then registering it: window.customElements.define('app-drawer', AppDrawer); Since I have a lot of code in Dart I thought I could maybe…
Philippe Fanaro
  • 6,148
  • 6
  • 38
  • 76
6
votes
2 answers

VSCode Dart Import Shortcut

Does VSCode and/or a plugin offer a keyboard shortcut to automatically add an import in a Dart file? In IntelliJ and Android Studio this effect is easily achieved with Opt+Enter.
SuperDeclarative
  • 1,609
  • 4
  • 18
  • 32
6
votes
3 answers

Dart SassBuilder cannot find Logger

I am trying to run an angular web app. I have cloned confirmed working project, but when I run pub get I get following error: /usr/lib/dart/bin/pub get Resolving dependencies... Got dependencies! Precompiling dependencies... Loading source…
Marcin Szałek
  • 4,609
  • 5
  • 30
  • 43
6
votes
1 answer

Recursively using a Component

I am trying to use a component, the template of which refers to another instance of the same component within it. The model is like this: class Item { String name; Item(this.name); } class Box extends Item { Box(String name) : super(name); …
Hesh
  • 413
  • 1
  • 3
  • 11
6
votes
0 answers

How to get the code coverage in Angular Dart?

I've tried using package coverage to get the code coverage from my Angular Dart 4.0 project. The following steps are my working flow: run pub serve test --port=8081 run pub run test --pub-serve=8081 --pause-after-load waiting for test runner print…
Eric Li
  • 96
  • 1
  • 3
  • 8
1 2
3
86 87