Skip to content

Commit 9db9918

Browse files
stherrienaspnetAwk34
authored andcommitted
fix(angular-validation-match): Integration with Babel & Typescript (#2517)
* Fix form field not displaying sequalize error * fix: Fix form field not displaying sequalize error fix: Fix form field not displaying sequalize error Display form field error when using sequelize as database * Fixed match integration for Babel & Typescript
1 parent 973c55c commit 9db9918

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Diff for: src/generators/app/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,8 @@ export class Generator extends Base {
547547
['ngRoute', 'angular-route'],
548548
['uiBootstrap', 'angular-ui-bootstrap'],
549549
['ngMessages', 'angular-messages'],
550-
['io', 'socket.io-client']
550+
['io', 'socket.io-client'],
551+
['ngValidationMatch', 'angular-validation-match']
551552
];
552553
function replacer(contents) {
553554
modulesToFix.forEach(([moduleName, importName]) => {

Diff for: templates/app/client/app/app.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import angular from 'angular';
44
import ngCookies from 'angular-cookies';
55
import ngResource from 'angular-resource';
66
import ngSanitize from 'angular-sanitize';
7-
import ngValidationMatch from 'angular-validation-match';
7+
88
<%_ if(filters.socketio) { _%>
99
import 'angular-socket-io';<% } %>
1010
<%_ if(filters.ngroute) { _%>
@@ -15,6 +15,7 @@ import uiRouter from 'angular-ui-router';<% } %>
1515
import uiBootstrap from 'angular-ui-bootstrap';<% } %>
1616
// import ngMessages from 'angular-messages';
1717
<%_ if(filters.auth) { _%>
18+
import ngValidationMatch from 'angular-validation-match';
1819
<% } %>
1920

2021

@@ -39,7 +40,6 @@ angular.module('<%= scriptAppName %>', [
3940
ngCookies,
4041
ngResource,
4142
ngSanitize,
42-
'validation.match',
4343
<%_ if(filters.socketio) { %>
4444
'btford.socket-io',<% } %>
4545
<%_ if(filters.ngroute) { %>
@@ -51,7 +51,9 @@ angular.module('<%= scriptAppName %>', [
5151
<%_ if(filters.auth) { %>
5252
_Auth,
5353
account,
54-
admin,<% } _%>
54+
admin,
55+
'validation.match',
56+
<% } _%>
5557
navbar,
5658
footer,
5759
main,

0 commit comments

Comments
 (0)