Skip to content

Commit c775888

Browse files
committedMay 18, 2021
Updated to angular 12.0
1 parent 030843e commit c775888

12 files changed

+6654
-6916
lines changed
 

‎README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

33
A demo angular application with unit and e2e tests, for the article at: http://clade.co.uk/adewole/blog/angular/cross-field-validation
44

5-
I wanted to share my experience and gather feedback on creating a custom Angular cross-field validator that compares and validates the values of multiple groups of input fields and their relative confirm input fields. The app is built with Angular 10 – strict mode, for both reactive and template-driven forms.
5+
I wanted to share my experience and gather feedback on creating a custom Angular cross-field validator that compares and validates the values of multiple groups of input fields and their relative confirm input fields. The app is built with Angular – strict mode, for both reactive and template-driven forms.
66

77
By [Ade Oyebadejo](http://www.clade.co.uk/adewole)
88

99
### Technology
1010

1111
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.0.5.
1212

13+
The project has been updated to Angular version 12.0
14+
1315
### Getting Started
1416

1517

‎angular.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,20 @@
2222
"main": "src/main.ts",
2323
"polyfills": "src/polyfills.ts",
2424
"tsConfig": "tsconfig.app.json",
25-
"aot": true,
2625
"assets": [
2726
"src/favicon.ico",
2827
"src/assets"
2928
],
3029
"styles": [
3130
"src/styles.css"
3231
],
33-
"scripts": []
32+
"scripts": [],
33+
"vendorChunk": true,
34+
"extractLicenses": false,
35+
"buildOptimizer": false,
36+
"sourceMap": true,
37+
"optimization": false,
38+
"namedChunks": true
3439
},
3540
"configurations": {
3641
"production": {
@@ -43,7 +48,6 @@
4348
"optimization": true,
4449
"outputHashing": "all",
4550
"sourceMap": false,
46-
"extractCss": true,
4751
"namedChunks": false,
4852
"extractLicenses": true,
4953
"vendorChunk": false,

‎karma.conf.js

+17-5
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,28 @@ module.exports = function (config) {
99
require('karma-jasmine'),
1010
require('karma-chrome-launcher'),
1111
require('karma-jasmine-html-reporter'),
12-
require('karma-coverage-istanbul-reporter'),
12+
require('karma-coverage'),
1313
require('@angular-devkit/build-angular/plugins/karma')
1414
],
1515
client: {
16+
jasmine: {
17+
// you can add configuration options for Jasmine here
18+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19+
// for example, you can disable the random execution with `random: false`
20+
// or set a specific seed with `seed: 4321`
21+
},
1622
clearContext: false // leave Jasmine Spec Runner output visible in browser
1723
},
18-
coverageIstanbulReporter: {
19-
dir: require('path').join(__dirname, './coverage/angular-form-input-cross-validator'),
20-
reports: ['html', 'lcovonly', 'text-summary'],
21-
fixWebpackSourcePaths: true
24+
jasmineHtmlReporter: {
25+
suppressAll: true // removes the duplicated traces
26+
},
27+
coverageReporter: {
28+
dir: require('path').join(__dirname, './coverage/angular-cross-field-validation'),
29+
subdir: '.',
30+
reporters: [
31+
{ type: 'html' },
32+
{ type: 'text-summary' }
33+
]
2234
},
2335
reporters: ['progress', 'kjhtml'],
2436
port: 9876,

0 commit comments

Comments
 (0)
Please sign in to comment.