This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:angular/angular.dart'; | |
abstract class HasTabIndex { | |
bool get disabled; | |
@HostBinding('tabindex') | |
String get tabIndex => disabled ? null : '0'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:angular/angular.dart'; | |
@Component( | |
selector: 'greet', | |
template: '<p>Hello {{name}}!</p>', | |
) | |
class GreetComponent { | |
String name; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DartType resolveGenerics(DartType type) { | |
if (type is TypeParameterType) { | |
return type.resolveToBound(dynamicType); // T --> dynamic. | |
} else if (type is ParameterizedType) { | |
// [T, ...] --> [dynamic, ...] | |
final resolvedTypeArguments = | |
type.typeArguments.map(resolveTypeParameters).toList(); | |
// Fails on nested unbounded type arguments. | |
// * List<T>.instantiate([dynamic]) --> List<dynamic> | |
// * List<Foo<T>>.instantiate([Foo<dynamic>]) --> List<Foo<T>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16342c16342 | |
< if (firstCheck) { | |
--- | |
> if (firstCheck && !$.AppViewUtils_throwOnChanges) { | |
16362,16371c16362,16373 | |
< if (firstCheck) | |
< this._RouterLinkActive_5_6.ngAfterViewInit$0(); | |
< if (firstCheck) | |
< this._RouterLinkActive_8_6.ngAfterViewInit$0(); | |
< if (firstCheck) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13724c13724 | |
< var detectors, $length, i, t1; | |
--- | |
> var detectors, $length, i; | |
13729,13738d13728 | |
< if ($.$get$ChangeDetectionHost__enforceNoNewChanges()) | |
< for (i = 0; i < $length; ++i) { | |
< t1 = detectors[i]; | |
< $.AppViewUtils__throwOnChangesCounter = $.AppViewUtils__throwOnChangesCounter + 1; | |
< $.AppViewUtils_throwOnChanges = true; |
OlderNewer