library app_initializer;

import 'package:angular/angular.dart';
import 'package:di/di.dart';
import 'package:di/static_injector.dart';

// Generated Files!
import 'di_factories_gen.dart' as di_factories_gen;
import 'ng_parser_gen.dart' as ng_parser_gen;

createInjector(List<Module> modules) {
  di_factories_gen.main();
  return new StaticInjector(modules: modules,
      typeFactories: di_factories_gen.typeFactories);
}

createParser(Module module) {
  module.type(Parser, implementedBy: StaticParser);
  module.factory(StaticParserFunctions,
      (i) => ng_parser_gen.functions(i.get(FilterMap)));
}
library app_initializer;

import 'package:angular/angular.dart';
import 'package:di/di.dart';
import 'package:di/static_injector.dart';

// Generated Files!
import 'di_factories_gen.dart' as di_factories_gen;
import 'ng_parser_gen.dart' as ng_parser_gen;

createInjector(List<Module> modules) {
  di_factories_gen.main();
  return new StaticInjector(modules: modules,
      typeFactories: di_factories_gen.typeFactories);
}

createParser(Module module) {
  module.factory(Parser, (i) {
    StaticParserFunctions fns = ng_parser_gen.functions(i.get(FilterMap));
    return new StaticParser(fns, null);
  });
}

Update to the latest StaticParser
fix(static-injector): Update to the latest StaticParser
