Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Commit

Permalink
docs(Runtime): Stop suggesting to use deprecated ElementRef class.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 229276733
  • Loading branch information
matanlurey authored and alorenzen committed Jan 17, 2019
1 parent cbd0b5c commit 3f2a5fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions angular/lib/src/core/metadata.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ export 'metadata/visibility.dart';
///
/// <?code-excerpt "docs/attribute-directives/lib/src/highlight_directive_1.dart"?>
/// ```dart
/// import 'dart:html';
///
/// import 'package:angular/angular.dart';
///
/// @Directive(selector: '[myHighlight]')
/// class HighlightDirective {
/// HighlightDirective(ElementRef el) {
/// el.nativeElement.style.backgroundColor = 'yellow';
/// HighlightDirective(Element el) {
/// el.style.backgroundColor = 'yellow';
/// }
/// }
/// ```
Expand Down

0 comments on commit 3f2a5fa

Please sign in to comment.