FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(license): add license component to display full license by mamichels · Pull Request #598 · angular/material.angular.io · GitHub

This repository was archived by the owner on Jan 4, 2026. It is now read-only.

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

Open
mamichels wants to merge 4 commits into
angular:mainfrom
mamichels:master
Open

feat(license): add license component to display full license#598
mamichels wants to merge 4 commits into
angular:mainfrom
mamichels:master

Conversation

Copy link
Copy Markdown

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

EdricChan03 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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";

EdricChan03 May 28, 2019
edited
Loading

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Please remove the spaces surrounding the import.

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



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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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)],

import {Component, NgModule} from '@angular/core';
import {materialVersion} from '../version/version';
import { RouterModule } from '@angular/router';
import { MATERIAL_DOCS_ROUTES } from '../../routes';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Please remove the spaces surrounding the import.

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL