Problem Description

You have a container #view and multiple templates , etc. Use location.hash (like #home). On hash change, render matching template into #view. Default to home.

Input Format

No input.

Output Format

No output (DOM change).

Constraints

Assume templates exist with ids matching route names and #view exists.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next