Skip to content
This repository was archived by the owner on Jun 20, 2019. It is now read-only.
This repository was archived by the owner on Jun 20, 2019. It is now read-only.

Providing duplicate directives, style URLs and providers doesn't show any warning #670

Description

import 'package:angular/angular.dart';
import 'package:angular_components/angular_components.dart';

@Component(
    selector: 'example-comp',
    templateUrl: 'example_comp.html',
    directives: const [
      MaterialToggleComponent,
      MaterialToggleComponent, // no warning
    ],
    styleUrls: const [
      'example_comp.scss.css',
      'example_comp.scss.css' // no warning
    ],
    providers: [
      popupBindings,
      popupBindings, // no warning
    ],
    exports: [
      ModalComponent,
      ModalComponent,// shows warning
    ])
class ExampleComp{
}

In above example providing duplicate directives, style URLs and providers doesn't show any warning.
Warnings are shown only for duplicate values in exports field.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions