polymer_app_router 0.2.4

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 0

polymer_app_router

Routing for polymer dart

Installing

Add to your pubspec.yaml

dependencies:
    polymer_app_router: "^0.0.2"

then pub get

then import

import 'package:polymer_app_router/polymer_app_router.dart';

Usage

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

API

PolymerRouter.goToName(String name,
      {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})
      

Current Route name

  String PolymerRouter.currentRouteName;

Current Page

  PolymerAppRoute PolymerRouter.currentPage;
  

Changelog

0.2.0

  • hierarchical routes now supported (a/b/c ...)
  • Breaking Changes: the element in the page class is now optional

0.1.2

  • Remove polymer_elements (iron-pages)
  • Add Readme

0.1.1

  • Initial version

example/main.dart

import 'package:polymer/polymer.dart';
import 'app.dart';

main() async {
  await initPolymer();
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  polymer_app_router: ^0.2.4

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:polymer_app_router/polymer_app_router.dart';
  
Version Uploaded Documentation Archive
0.2.4 May 5, 2016 Go to the documentation of polymer_app_router 0.2.4 Download polymer_app_router 0.2.4 archive
0.2.3 Mar 30, 2016 Go to the documentation of polymer_app_router 0.2.3 Download polymer_app_router 0.2.3 archive
0.2.2 Jan 27, 2016 Go to the documentation of polymer_app_router 0.2.2 Download polymer_app_router 0.2.2 archive
0.2.1 Jan 27, 2016 Go to the documentation of polymer_app_router 0.2.1 Download polymer_app_router 0.2.1 archive
0.2.0 Jan 24, 2016 Go to the documentation of polymer_app_router 0.2.0 Download polymer_app_router 0.2.0 archive
0.1.2 Jan 21, 2016 Go to the documentation of polymer_app_router 0.1.2 Download polymer_app_router 0.1.2 archive
0.1.0 Jan 15, 2016 Go to the documentation of polymer_app_router 0.1.0 Download polymer_app_router 0.1.0 archive
0.0.6 Jan 5, 2016 Go to the documentation of polymer_app_router 0.0.6 Download polymer_app_router 0.0.6 archive
0.0.5+1 Dec 29, 2015 Go to the documentation of polymer_app_router 0.0.5+1 Download polymer_app_router 0.0.5+1 archive
0.0.5 Dec 29, 2015 Go to the documentation of polymer_app_router 0.0.5 Download polymer_app_router 0.0.5 archive

All 14 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
0
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0
Overall:
Weighted score of the above. [more]
0
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Analysis issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see https://www.dartlang.org/dart-2#migration.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.13.0 <2.0.0