polymer_app

Installation

pub global activate polymer_app

Usage

polymer_app 
    new app app_name
    new element element-name
    new model name
    new behavior name
    new service name
    new route name path
    -o, --output-folder    (defaults to "./")
    -h, --[no-]help  

Create a polymer app

polymer_app new app awesome_app
cd awesome_app
pub get
pub serve

Create a polymer element

polymer_app new element my-element

Create a route

polymer_app new route name path   

Create a polymer behavior

polymer_app new behavior my-behavior

Create a polymer model (with serialize/deserilize)

polymer_app new model my-model

Create a service (class with factory constructor)

polymer_app new service my-service

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})

See polymer_app_router for more documentation.

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.routes

Created by lejard_h on 24/12/15.

polymer_app.services

Created by lejard_h on 24/12/15.

polymer_app.utils

Created by lejard_h on 23/12/15.

polymer_model

Created by lejard_h on 23/12/15.