Skip to content
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

feat(license): add license component to display full license #598

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mamichels
Copy link

Adding the full license aggreement as per angular.io example in reference to angular/components#16039

Copy link
Contributor

@EdricChan03 EdricChan03 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to see a dedicated page for the license, but there's a couple of small nitpicks that should be fixed before it can be merged.

@@ -0,0 +1,21 @@
<div class="license-content">
<p class="license-title">The MIT License</p>
<p>Copyright (c) 2010-2019 Google LLC. <a href="license">http://material.angular.io/license</a></p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be a good idea to use routerLink here instead of a href tag

@@ -4,6 +4,7 @@ import {MatButtonModule} from '@angular/material/button';
import {FooterModule} from '../../shared/footer/footer';
import {RouterModule} from '@angular/router';
import {ComponentPageTitle} from '../page-title/page-title';
import { LicenseModule } from '../license/license';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the spaces surrounding the import.

Suggested change
import { LicenseModule } from '../license/license';
import {LicenseModule} from '../license/license';

@@ -0,0 +1,16 @@
import { Component, NgModule } from "@angular/core";
Copy link
Contributor

@EdricChan03 EdricChan03 May 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should be indented with 2 spaces instead of 4 and use single quotes instead of double quotes as well as removing the spaces from your import statements.

@@ -0,0 +1,16 @@
@import '../../../styles/constants';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should be indented with 2 spaces instead of 4.

@@ -1,5 +1,7 @@
import {Component, NgModule} from '@angular/core';
import {materialVersion} from '../version/version';
import { RouterModule } from '@angular/router';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the spaces surrounding the import.

Suggested change
import { RouterModule } from '@angular/router';
import {RouterModule} from '@angular/router';

@@ -14,6 +16,7 @@ export class Footer {


@NgModule({
imports: [RouterModule.forRoot(MATERIAL_DOCS_ROUTES)],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use RouterModule#forChild instead of RouterModule#forRoot on submodules/lazy-loaded modules (as indicated in the API docs for RouterModule).

Suggested change
imports: [RouterModule.forRoot(MATERIAL_DOCS_ROUTES)],
imports: [RouterModule.forChild(MATERIAL_DOCS_ROUTES)],

@@ -1,5 +1,7 @@
import {Component, NgModule} from '@angular/core';
import {materialVersion} from '../version/version';
import { RouterModule } from '@angular/router';
import { MATERIAL_DOCS_ROUTES } from '../../routes';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the spaces surrounding the import.

Suggested change
import { MATERIAL_DOCS_ROUTES } from '../../routes';
import {MATERIAL_DOCS_ROUTES} from '../../routes';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants