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

import 'package:{{{example_import}}}' as app;
import 'main.template.dart' as ng;

void main() {
  Logger.root.onRecord.listen((record) {
    var msg = '${record.time}: ${record.message}';
    if (record.error != null) msg += '\n\nCaused by:\n\n${record.error}';
    if (record.stackTrace != null) msg+= '\n${record.stackTrace}';
    print(msg);
  });

  runApp(app.GallerySectionNgFactory, createInjector: appInjectorFactory);
}

@GenerateInjector([
    FactoryProvider(ExceptionHandler, exceptionHandlerFactory),
])
final InjectorFactory appInjectorFactory = ng.appInjectorFactory$Injector;

ExceptionHandler exceptionHandlerFactory() => ExceptionHandler(Logger.root);

import 'package:angular/angular.dart';
import 'package:logging/logging.dart';
import 'package:angular_components/material_datepicker/module.dart';

import 'package:{{{example_import}}}' as app;
import 'main.template.dart' as ng;

void main() {
  Logger.root.onRecord.listen((record) {
    var msg = '${record.time}: ${record.message}';
    if (record.error != null) msg += '\n\nCaused by:\n\n${record.error}';
    if (record.stackTrace != null) msg+= '\n${record.stackTrace}';
    print(msg);
  });

  runApp(app.GallerySectionNgFactory, createInjector: appInjectorFactory);
}

@GenerateInjector([
    datepickerBindings,
    FactoryProvider(ExceptionHandler, exceptionHandlerFactory),
])
final InjectorFactory appInjectorFactory = ng.appInjectorFactory$Injector;

ExceptionHandler exceptionHandlerFactory() => ExceptionHandler(Logger.root);

Add missing providers for Material Datepicker to stand alone gallery page demos.
Add missing providers for Material Datepicker to stand alone gallery page demos.

PiperOrigin-RevId: 219697789
