Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Add module for all components #237

Merged
merged 14 commits into from
Nov 22, 2017
Merged

Add module for all components #237

merged 14 commits into from
Nov 22, 2017

Conversation

scote
Copy link
Contributor

@scote scote commented Nov 6, 2017

  • Add lazy load to demo app page
  • Add index.ts to folders.

- Add lazy load to demo app page
- Add index.ts to folders.
@scote scote mentioned this pull request Nov 6, 2017
6 tasks
@scote scote force-pushed the lazy-load-demo-app branch from aaa7939 to e6d4355 Compare November 6, 2017 03:48
@scote scote force-pushed the lazy-load-demo-app branch 3 times, most recently from 23bda10 to 9cea620 Compare November 7, 2017 03:21
@scote scote force-pushed the lazy-load-demo-app branch from 9cea620 to e4bd50a Compare November 7, 2017 03:31
appveyor.yml Outdated
@@ -13,13 +13,12 @@ platform:

install:
- ps: Install-Product node $env:nodejs_version
- yarn install --frozen-lockfile --no-progress
- yarn install --frozen-locykfile --no-progress
Copy link
Contributor

Choose a reason for hiding this comment

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

--frozen-lockfile (no y)

CodeSnippetModule,
CommonModule,
MaterializeModule,
MzButtonModule,
Copy link
Contributor

Choose a reason for hiding this comment

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

remove unused MzButtonModule

@@ -1,3 +1,5 @@
@import "../../_route-animation-host";

.tab-content {
padding: 5px;
}
Copy link
Contributor

@jfcere jfcere Nov 11, 2017

Choose a reason for hiding this comment

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

add line-return at the end of the file

@@ -1,10 +1,14 @@
import { Component } from '@angular/core';

import { ROUTE_ANIMATION, ROUTE_ANIMATION_HOST } from '../app.routing.animation';
import { IPropertyRow } from './../shared/properties-table/properties-table.component';
Copy link
Contributor

Choose a reason for hiding this comment

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

remove ./ in front of ./../shared/properties-table/properties-table.component

MzTextAreaModule,
MzTimepickerModule,
MzValidationModule,

Copy link
Contributor

Choose a reason for hiding this comment

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

remove empty line

import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

import { MzCheckboxContainerComponent } from './checkbox-container/checkbox-container.component';
Copy link
Contributor

Choose a reason for hiding this comment

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

could use the chaining you added with index.ts to export MzCheckboxContainerComponent ...

import { MzCheckboxContainerComponent } from './checkbox-container';

import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

import { MzTextareaContainerComponent } from './textarea-container/textarea-container.component';
Copy link
Contributor

Choose a reason for hiding this comment

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

import { MzTextareaContainerComponent } from './textarea-container';

import { NgModule } from '@angular/core';

import { MzTextareaContainerComponent } from './textarea-container/textarea-container.component';
import { MzTextareaPrefixDirective } from './textarea-prefix/textarea-prefix.directive';
Copy link
Contributor

Choose a reason for hiding this comment

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

import { MzTextareaPrefixDirective } from './textarea-prefix/';

import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

import { MzTimepickerContainerComponent } from './timepicker-container/timepicker-container.component';
Copy link
Contributor

Choose a reason for hiding this comment

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

import { MzTimepickerContainerComponent } from './timepicker-container';

import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

import { MzToastService } from './services/toast.service';
Copy link
Contributor

Choose a reason for hiding this comment

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

import { MzToastService } from './services';

import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

import { MzErrorMessageComponent } from './error-message/error-message.component';
Copy link
Contributor

Choose a reason for hiding this comment

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

import { MzErrorMessageComponent } from './error-message';

@jfcere jfcere added this to the 1.7.0 milestone Nov 11, 2017
@jfcere
Copy link
Contributor

jfcere commented Nov 13, 2017

Still for this to be completed ...

  • Module name should be specified on each demo-page
  • Add example of "shared module" like Angular Material in readme.md
  • As it is not removed, MaterializeModule should still be mentioned in readme.md as an alternative to import everything

- Add import for each component in demo pages
- Enhanced the example how to import component in readme
- Add as alternative MaterializeModule can still be used in readme
README.md Outdated
],
declarations: [ HomeComponent ],
})
export class HomeModule { }
```


### Alternative
As an alternative, you can import `MaterializeModule` to make all component availables. This module is **depracated** and it will be removed in a near futur.
Copy link
Contributor

Choose a reason for hiding this comment

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

futur future

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I though i did this correction haha sorry

Copy link
Contributor

Choose a reason for hiding this comment

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

lol no problem ;) This is starting to looking good ... should be all set for merge.

@jfcere jfcere merged commit 32a76c7 into master Nov 22, 2017
@jfcere jfcere deleted the lazy-load-demo-app branch November 22, 2017 02:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants