| Index: third_party/pkg/angular/test/io/test_files/routing.dart
|
| diff --git a/third_party/pkg/angular/test/io/test_files/routing.dart b/third_party/pkg/angular/test/io/test_files/routing.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..854ad764d765a7a66f6b2c7e3297d72bb30bd792
|
| --- /dev/null
|
| +++ b/third_party/pkg/angular/test/io/test_files/routing.dart
|
| @@ -0,0 +1,27 @@
|
| +library test_files.main;
|
| +
|
| +import 'package:angular/core/annotation_src.dart';
|
| +import 'package:angular/routing/module.dart';
|
| +import 'package:di/di.dart';
|
| +
|
| +@Decorator(
|
| + selector:'[ng-if]',
|
| + map: const {'.': '=>ngIfCondition'})
|
| +class NgIfDirective {
|
| + bool ngIfCondition;
|
| +}
|
| +
|
| +main() {
|
| + var barRoute = ngRoute(
|
| + path: '/bar',
|
| + viewHtml: '<div ng-if="bar"></div>');
|
| + var module = new Module()
|
| + ..value(RouteInitializerFn, (router, views) {
|
| + views.configure({
|
| + 'foo': ngRoute(
|
| + path: '/foo',
|
| + viewHtml: '<div ng-if="foo"></div>'),
|
| + 'bar': barRoute,
|
| + });
|
| + });
|
| +}
|
|
|