Permalink
Browse files

doc: @di.injectable for class Application

  • Loading branch information...
MikeMitterer committed Dec 12, 2017
1 parent aa724eb commit e35a1d7615c96caa7926acf85b20dfada983ab3c
Showing with 19 additions and 16 deletions.
  1. +19 −16 lib/src/core/annotations.dart
@@ -39,22 +39,25 @@ class MdlComponentModelAnnotation {
}
/**
* Helps mustache to know which vars are available to render
* Sample:
*
* @Component
* class Model {
* int sliderValue = 20;
* }
*
* mustache.template = """
* <div>
* Slider value: {{sliderValue}}
* </div>""";
*
* mustache.render(model);
*/
/// Helps mustache to know which vars are available to render
///
/// Sample:
/// @Component
/// class Model {
/// int sliderValue = 20;
/// }
/// mustache.template = """
/// <div>
/// Slider value: {{sliderValue}}
/// </div>""";
/// mustache.render(model);
///
/// For 'class Application...' use @di.injectable
///
/// @di.injectable
/// class Application extends MaterialApplication {
/// ...
/// }
@deprecated
const MdlComponentModelAnnotation MdlComponentModel = const MdlComponentModelAnnotation();

0 comments on commit e35a1d7

Please sign in to comment.