clean_router 0.1.3 copy "clean_router: ^0.1.3" to clipboard
clean_router: ^0.1.3 copied to clipboard

outdatedDart 1 only

Routing library used in clean framework.

example/example.dart

import "package:clean_router/client_browser.dart";
import "dart:html";

class SimpleView extends View {

  final message;

  SimpleView(this.message);

  void load(data) {
    window.alert(message);

  }
  void unload() {

  }
}

void main() {
  var navigator = createPageNavigator();

  var router = navigator.router;

  var view = new SimpleView("Hello world!");
  var defaultView = new SimpleView("Hello default!");

  router.registerRoute("example", new Route("/clean_router/example/example.html/"));

  navigator.registerView('example', view);
  navigator.registerDefaultView(defaultView);

}
0
likes
0
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

Routing library used in clean framework.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

browser, clean_data

More

Packages that depend on clean_router