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", "builder": "@angular-devkit/build-angular:protractor",
"options": { "options": {
"protractorConfig": "e2e/protractor.conf.js", "protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "nls-guilloche-generator:serve" "devServerTarget": "NlsGuillocheGenerator:serve"
} }
}, },
"lint": { "lint": {

View File

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

View File

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

View File

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

View File

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