Skip to content

Commit

Permalink
fix(angular-validation-match): Integration with Babel & Typescript (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
stherrienaspnet authored and Awk34 committed Mar 12, 2017
1 parent 973c55c commit 9db9918
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,8 @@ export class Generator extends Base {
['ngRoute', 'angular-route'],
['uiBootstrap', 'angular-ui-bootstrap'],
['ngMessages', 'angular-messages'],
['io', 'socket.io-client']
['io', 'socket.io-client'],
['ngValidationMatch', 'angular-validation-match']
];
function replacer(contents) {
modulesToFix.forEach(([moduleName, importName]) => {
Expand Down
8 changes: 5 additions & 3 deletions templates/app/client/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import angular from 'angular';
import ngCookies from 'angular-cookies';
import ngResource from 'angular-resource';
import ngSanitize from 'angular-sanitize';
import ngValidationMatch from 'angular-validation-match';

<%_ if(filters.socketio) { _%>
import 'angular-socket-io';<% } %>
<%_ if(filters.ngroute) { _%>
Expand All @@ -15,6 +15,7 @@ import uiRouter from 'angular-ui-router';<% } %>
import uiBootstrap from 'angular-ui-bootstrap';<% } %>
// import ngMessages from 'angular-messages';
<%_ if(filters.auth) { _%>
import ngValidationMatch from 'angular-validation-match';
<% } %>
Expand All @@ -39,7 +40,6 @@ angular.module('<%= scriptAppName %>', [
ngCookies,
ngResource,
ngSanitize,
'validation.match',
<%_ if(filters.socketio) { %>
'btford.socket-io',<% } %>
<%_ if(filters.ngroute) { %>
Expand All @@ -51,7 +51,9 @@ angular.module('<%= scriptAppName %>', [
<%_ if(filters.auth) { %>
_Auth,
account,
admin,<% } _%>
admin,
'validation.match',
<% } _%>
navbar,
footer,
main,
Expand Down

0 comments on commit 9db9918

Please sign in to comment.