Skip to content

meteor-activeroute/core

Repository files navigation

activeroute:core

This is the core logic of activeroute.

activeroute:core provides javascript helpers for figuring out which route is the current route. For blaze helpers please see activeroute:blaze.

Install

meteor add activeroute:core

Don't forget to install a router adapter too.

Usage

import ActiveRoute from 'meteor/activeroute:core';
import adapter from 'meteor/activeroute:iron-router';

const activeRoute = new ActiveRoute({
  routerAdapter: adapter,
});

activeRoute.name('home');
// return true/false

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published