Skip to content

Commit

Permalink
schematics(remove): remove heroRoute for the basic config (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeucano authored and aaronfrost committed Dec 16, 2019
1 parent a36d7f0 commit d487b07
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion schematics/scully/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion schematics/scully/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scullyio/init",
"version": "0.0.5",
"version": "0.0.6",
"description": "Add scully to your angular app",
"repository": {
"type": "GIT",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import {NgModule} from '@angular/core';
import {Routes, RouterModule, Route} from '@angular/router';
import {Routes, RouterModule} from '@angular/router';

import {BlogComponent} from './blog.component';

interface HeroRoute extends Route {
hero?: {path: string};
}
type HeroRoutes = HeroRoute[];

const routes: HeroRoutes = [
const routes: Routes = [
{
path: ':slug',
component: BlogComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import {NgModule} from '@angular/core';
import {Routes, RouterModule, Route} from '@angular/router';
import {Routes, RouterModule} from '@angular/router';

import {<%= classify(name) %>Component} from './<%= dasherize(name) %>.component';

interface HeroRoute extends Route {
hero?: {path: string};
}
type HeroRoutes = HeroRoute[];

const routes: HeroRoutes = [
const routes: Routes = [
{
path: ':<%= slug %>',
component: <%= classify(name) %>Component,
Expand Down

0 comments on commit d487b07

Please sign in to comment.