-
Notifications
You must be signed in to change notification settings - Fork 61
Refactoring App Module and App Routing Module #299
Refactoring App Module and App Routing Module #299
Conversation
RulesComponent, | ||
TestimonialsComponent, | ||
TwitterFeedComponent, | ||
HomeComponent |
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.
HomeComponent uses the headers and footer component, which is not declared in this module. May be we can have NavModule
(it will declare the header and footer that will be used across other module as well) which will be imported here.
WDYT ?
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.
I had tried that too, but adding the NavModule is making the side-nav and top-nav appear but their routes are not working.
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.
@Shekharrajak I was missing to add the "RouterModule" in the custom modules due to which routerLinks were not getting activated. It's working fine now. I have comitted the required changes. Please look at it once and let me know if any modification is required.
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.
Can you please share the demo link, that surge create during travis CI/CD build ? You can also create some GIF of the working for future reference along with PR description.
TwitterFeedComponent, | ||
HomeComponent | ||
], | ||
schemas: [ CUSTOM_ELEMENTS_SCHEMA ], |
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.
What does it do ?
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.
Basically, it defines a schema that will allow any non-Angular elements with 'a -' in their name. Without this, all the selector tags were throwing error of being undefined.
Please try to make better PR title and commit message. |
Codecov Report
@@ Coverage Diff @@
## master #299 +/- ##
==========================================
+ Coverage 50.62% 50.64% +0.02%
==========================================
Files 66 66
Lines 3771 3771
Branches 444 444
==========================================
+ Hits 1909 1910 +1
+ Misses 1767 1766 -1
Partials 95 95
Continue to review full report at Codecov.
|
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.
Thanks for the work! Can you please create a list of modules that you created in this PR and TODO modules that is not cover in this PR? You can create a checklist in PR description or somewhere in different newly opened issue.
RulesComponent, | ||
TestimonialsComponent, | ||
TwitterFeedComponent, | ||
HomeComponent |
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.
Can you please share the demo link, that surge create during travis CI/CD build ? You can also create some GIF of the working for future reference along with PR description.
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.
Thanks for GIF and PR description update. May be you can update it in idea list task for future reference. @Sanji515 can you please check it locally once and approve , if it is looking fine ?
@Sanji515 Can you please take a look at this? |
Codecov Report
@@ Coverage Diff @@
## master #299 +/- ##
=======================================
Coverage 50.63% 50.63%
=======================================
Files 66 66
Lines 3772 3772
Branches 444 444
=======================================
Hits 1910 1910
Misses 1767 1767
Partials 95 95 Continue to review full report at Codecov.
|
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.
Good Work @Kajol-Kumari
LGTM 👍 This can be merged 🎉
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.
Looks good to me, LGTM 🎉
@Kajol-Kumari I think we can close this PR as the work done in this PR is already included in #303 |
yes @Sanji515 agree with you.will close this one. |
This PR includes the implementation of one of the part of ideas proposed in here.
Features added:
Refactoring Done for following Modules:
Refactoring TODO list:
GIF showing that all routes are working fine are refactoring:
Link to live demo: http://pr-299-evalai.surge.sh