Build Status pub package Coverage Status

polymer_app

Installation

pub global activate polymer_app

Usage

polymer_app new_application my_app
cd my_app; pub get; pub serve


Available commands

exit                                                                                             Exit the program
help             [term=String]                                                                   Show help screen
reload           [arguments=List<String>]                                                        Exit and restart the program
as_shell                                                                                         Launch polymer_app as_shell
new_route        name=String path=String --output_folder=String                                  Create new polymer_app route.
new_model        name=String --output_folder=String                                              Create new polymer_app model.
new_service      name=String --output_folder=String                                              Create new polymer_app service.
new_behavior     name=String --output_folder=String                                              Create new polymer behavior.
new_element      name=String --output_folder=String                                              Create new polymer element.
new_config       name=String --output_folder=String                                              Create new polymer_app config.
new_application  name=String --output_folder=String --is_material=bool --material_layout=String  Create new polymer application.

Usage of Router

Html

<polymer-app-router selected="{{selected}}">
    <polymer-app-route name="home" path="" is-default>home</polymer-app-route>
    <polymer-app-route name="one" path="one">one</polymer-app-route>
    <polymer-app-route name="two" path="two">two</polymer-app-route>
</polymer-app-router>

Dart

import 'package:polymer_app_router/polymer_app_router.dart' show PolymerRouter;

PolymerRouter.goToDefault(
      {Map parameters,
      Route startingFrom,
      bool replace: false,
      Map queryParameters,
      bool forceReload: false})
      
PolymerRouter.goToDefault(
       {Map parameters,
       Route startingFrom,
       bool replace: false,
       Map queryParameters,
       bool forceReload: false})

Libraries

polymer_app.behaviors

Created by lejard_h on 24/12/15.

polymer_app.elements

Created by lejard_h on 24/12/15.

polymer_app.http_service

Created by lejard_h on 23/12/15.

polymer_app.manager

Created by lejard_h on 24/12/15.

polymer_app.models

Created by lejard_h on 24/12/15.

polymer_app.polymer_model

Created by lejard_h on 23/12/15.

polymer_app.router

Created by lejard_h on 30/12/15.

polymer_app.routes

Created by lejard_h on 24/12/15.

polymer_app.serializer

Created by lejard_h on 02/01/16.

polymer_app.services

Created by lejard_h on 24/12/15.

polymer_app.utils

Created by lejard_h on 23/12/15.