Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Brady Trainor
@bradyt
Some googling revealed passing mention of that as they mentioned the hierarchy of injectors. Actually the word was "tree", not "hierarchy", but w/e.
Hierarchy seems more suggestive of what I'm asking about.
Brady Trainor
@bradyt
OMG, took me so long to finish the tour of heroes tutorial.
Brady Trainor
@bradyt
I spent most of that time trying to get a working commit history of TOH.
I could go back and try to actually understand it, or just leave it there for now, and start working on my actual app, and also the "advanced" tutorials.
Brady Trainor
@bradyt
Ugh, trying to constantly dig myself out of bad state in Angular Dart is burning a lot of CPU. #cantwin.
Henry Poit
@hpoit
Hi @kwalrath, how do I deploy https://github.com/angular-examples/lottery/tree/master/4-final? GCP with NodeJS?
Jonathan Rezende
@jodinathan
how do I add source map to dart2js testing?
my build target:
builders:
      sass_builder|sass_builder:
        enabled: False
      guaraci_admin|scss_builder:
        enabled: True
      build_web_compilers|entrypoint:
        options:
          compiler: dart2js
        # These are globs for the entrypoints you want to compile.
        generate_for:
          - web/**.dart
        release_options:
          #only_applied_in_release_mode: true
          compiler: dart2js
          # List any dart2js specific args here, or omit it.
          dart2js_args:
            - -O4
            - --minify
            #- --omit-implicit-check
            - --trust-primitives
            - --fast-startup
I guess I should add something to the "options" part, but dunno
Jonathan Rezende
@jodinathan
@hpoit why do you tag google staff so often?
Randal L. Schwartz
@RandalSchwartz
Might not believe the rest of us can help.
but yeah, this is a community channel, not a support channel.
Henry Poit
@hpoit
I'm open for help from anyone, Kwalrath is just the owner of the repo
Randal L. Schwartz
@RandalSchwartz
Everyone at google owns the repo.
Luis Vargas
@luisvt
Hello guys I just released a new version of ng_bootstrap
Jacob MacDonald
@jakemac53
@hpoit please stop direct pings you have been asked more than once
Henry Poit
@hpoit
Ok Jake. I am trying to docker build -t my/app ., and I have created links to /usr/local/Cellar/dart/2.5.0-dev.2.1, but I get The current Dart SDK version is 2.4.1.. Any idea why? My pubspec.yaml is also defined as sdk: 2.5.0-dev.2.1
Henry Poit
@hpoit
How does server.dart look like for the lottery app?
Emmanuel Belair
@e-belair
Hi, can't figure out how to make StreamController working, I've created it in a service, then I add the event. In a component I listen to the event but nothing happens ...
/// Service:
  StreamController _onCrudController =
    StreamController<Etablissement>.broadcast();
  Stream<Etablissement> get onCrud => _onCrudController.stream;

_onCrudController.add(etablissement);

/// Then in my component:
  void ngOnInit() async {
    _etablissementService.onCrud.listen((e) {
      etablissement = e; // Nothing happens here
    });
  }
It's really strange because I'm using the same code in another Component/Service and it works Oo
Frank Pepermans
@frankpepermans
@e-belair could be one of many reasons:
  • does the component inherit from OnInit?
  • you have a broadcast Stream here, perhaps the listen happens after the event was dispatched? In the case of a broadcast Stream, past events are not replayed.
h4xhor
@h4xhor
Greetings Angular Dart community. May I please ask does anyone know how to change the material design material-expansionpanel colour? I can change the name & value components of it using css classes but they seem to have no effect on the material-expansionpanel. Thank you.
Emmanuel Belair
@e-belair
@frankpepermans yes it implement OnInit. Also the listen is happening before the event dispatch. The service method is called from a child component.
Emmanuel Belair
@e-belair
I've putted the ClassProvider for the service in the parent component so the service should be shared
Ok it's working now ..... my bad, I forget to share the service
Monday and already tired, I can't imagine the rest of the week lol
rkunboxed
@rkunboxed
Is there a way to configure the webdev generated http server to use a self signed ssl certificate? Someone posted about this in SO but it's nothing but crickets over there: https://stackoverflow.com/questions/55513805/how-to-estabilish-a-secure-connection-on-localhost-with-angular-dart-webdev
Nate Bosch
@natebosch

Someone recently added --tls-cert-chain and --tls-cert-key flags.
dart-lang/webdev#565

I don't know if there is a way to use a self signed ssl cert

rkunboxed
@rkunboxed
that might be all I need, thanks!
Mitai
@MitaiGit
Hello everyone where you can read about using DartAngular + Django, for entry level...
Emmanuel Belair
@e-belair
Hi there, I can't figure out how to dynamically set an element required depending of another element inside a ControlArray
// In my component
    var reseauxGroup = [];
    etabReseauOptions.forEach((e)=> reseauxGroup.add(FormBuilder.controlGroup({
      'checked': [e.checked],
      'lien': [e.etabReseau.lien, Validators.maxLength(250)]})));
    etabForm = FormBuilder.controlGroup({
      'reseaux': FormBuilder.controlArray(reseauxGroup)
    });
        <div *ngFor="let re of reseaux.controls; let i=index" class="columns is-gapless">
            <div class="column is-one-fifth">
                <material-toggle
                        class="flip-label"
                        label="{{etabReseauOptions[i].reseauEtab}}"
                        [(ngModel)]="etabReseauOptions[i].checked"
                ></material-toggle>
            </div>
            <div class="column">
                <material-input
                        label="Lien"
                        class="block-width"
                        [disabled]="!etabReseauOptions[i].checked"
                        [required]="etabReseauOptions[i].checked"
                        [(ngModel)]="etabReseauOptions[i].etabReseau.lien"
                ></material-input>
            </div>
        </div>
        <material-fab
                mini
                raised
                materialTooltip="Valider"
                class="blue"
                [disabled]="!etabForm.valid"
                (trigger)="onSubmit()">
            <i class="fal fa-check"></i>
        </material-fab>
So I want to make the input text required when the toggle is checked
It's working as expected except for the validation button thats not being disabled when form is invalid (when an input text is empty)
Emmanuel Belair
@e-belair
If I add a Validators.required in the Control, the form will invalid on all empty text inputs, even if the toggle is unchecked
So I wonder how to make an input field dynamically required and then validate the form properly
ggeorgiev92
@ggeorgiev92
Hi I would like to use angular tab inside angular tab?
what I mean is every tab to have option to have sub tab panel
ggeorgiev92
@ggeorgiev92
nevermind I found a solution - the sub tab panel need to be in separate component
andesappal
@andesappal
Hello! Do I have to paste _material.scss to the /src of my project to make @import 'package:angular_components/css/material/material'; work?
I already have Angular Components in my pubspec.yaml, not sure why this @import isn't working.
I also have sass_builder and bootstrap_sass in my pubspec
andesappal
@andesappal
I also need to successfully @import 'package:angular_components/css/material/material'; onto material_card_example.scss
I am trying to make <div class="mdc-card demo-size"> work, without cloning all of https://github.com/dart-lang/angular_components
andesappal
@andesappal
I've cloned the entire Angular Components repo. Any idea why these exports are marked in red?:
image.png
I haven't found any issues in error_renderer.dart or base_material_input.dart