2
0

reimplementing necessary components, services etc

This commit is contained in:
2018-09-02 18:05:39 +02:00
parent 4b26dd2777
commit bc64d7fb37
5 changed files with 11 additions and 3 deletions

View File

@@ -107,7 +107,7 @@
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "nls-guilloche-generator:serve"
"devServerTarget": "NlsGuillocheGenerator:serve"
}
},
"lint": {

View File

@@ -31,6 +31,7 @@
"ng": "ng",
"start": "ng serve --aot -o",
"build": "ng build --prod",
"build:library": "ng build NlsGuilloche --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"

View File

@@ -75,8 +75,6 @@ export class NlsGraphsComponent implements OnChanges, OnInit {
this.updateCanvas();
this.updateMatrix();
console.log(changes);
if (changes.config) {
// Config changes must not trigger any other events
this.updateGraphs();

View File

@@ -23,6 +23,7 @@ import 'moment/min/locales';
import { environment as env } from '../environments/environment';
import { NlsHistoryService } from 'projects/nls-guilloche/src/public_api';
import { NlsGraphsComponent } from 'projects/nls-guilloche/src/public_api';
@Component({
selector: 'app-root',

View File

@@ -22,11 +22,16 @@ import { MomentModule } from 'ngx-moment';
import { AppComponent } from './app.component';
import { NlsGraphsComponent } from 'projects/nls-guilloche/src/public_api';
import { NlsHistoryService } from 'projects/nls-guilloche/src/public_api';
import { NlsCanvasService } from 'projects/nls-guilloche/src/public_api';
import { NlsMathService } from 'projects/nls-guilloche/src/public_api';
import { NlsGraphService } from 'projects/nls-guilloche/src/public_api';
import { NlsGuillocheDirective } from 'projects/nls-guilloche/src/public_api';
@NgModule({
declarations: [
AppComponent,
NlsGraphsComponent,
NlsGuillocheDirective,
],
imports: [
BrowserModule,
@@ -36,6 +41,9 @@ import { NlsHistoryService } from 'projects/nls-guilloche/src/public_api';
],
providers: [
NlsHistoryService,
NlsCanvasService,
NlsMathService,
NlsGraphService,
],
bootstrap: [AppComponent]
})