-
Notifications
You must be signed in to change notification settings - Fork 880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moved some examples to new /examples route #213
Conversation
<h1 class="project-name"><a routerLink="/">ng2-smart-table</a></h1> | ||
<h2 class="project-tagline">{{ tagline }}</h2> | ||
|
||
<a routerLinkActive="active" routerLink="/demo" class="btn">Quick Start</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can write routerLink="demo"
and etc. without slash.
<a routerLinkActive="active" routerLink="/documentation" class="btn">Documentation</a> | ||
<a target="_blank" href="https://github.com/akveo/ng2-smart-table" class="btn">View on GitHub</a> | ||
</section> | ||
<header-component [tagline]="'Documentation'"></header-component> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can write a literal value like tagline="Documentation"
.
@@ -0,0 +1,29 @@ | |||
import { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename file to examples.routes.ts
.
@@ -0,0 +1,25 @@ | |||
<h2>Customized edit and view cells examples</h2> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, for file naming use angular style guide. For example: custom-edit-view-examples.component.ts
, custom-edit-view-examples.component.html
, custom-edit-view-examples.component.scss
, custom-edit-view-examples.service.ts
.
@damnko how to implement async routes you can see in ng2-admin repository. PR looks good 😃 . |
…2-smart-table into documentation-refactor
Hi, I have moved the /examples section to a dedicated async module but I am still having problems when running
When doing Could you give it a try and see if you come up with anything that can solve this issue? I fixed all the suggestions you wrote me on the previous commit apart from changing the Please let me know should you have any question or suggestion |
@damnko could you please do a quick fix, replace async routes with components and we will be ready to merge it. |
Hey @damnko, really looking forward to your input on this :) |
Hi, I'm sorry for not being responsive. |
Hey @damnko, thanks for your response. Well, in this very case, we decided that at the moment it's much more important to have the examples pages working properly rather than have the async version of the routes :) Thanks for your work! |
Sure I understand, thanks for your feedback. |
Hi, I created a new "Examples" route with some subpages with all the examples divided by context.
This should hopefully solve #184
I wanted to place all the examples in a separate module and load it asynchronously but I kept having problems with Webpack.
These are the
loadChildren
test codes I used with theangular2-load-children-loader
Webpack loaderNone of these worked and Webpack kept throwing the following error:
Module build failed: TypeError: Can't add property q9ybxdsfw29, object is not extensible
If you have any hint on how to solve this please let me know. Thanks.