Skip to content Skip to sidebar Skip to footer

Using Jsp C Tag Within Angularjs Code

Note: I am modifying this post, after I gained more experience working with Angular and Java. This is to avoid posting a new question. Over the past few months, working with differ

Solution 1:

The best way to develop a reusable form is a directive using html templateUrl. You are probably using the the 'template' feature

return {
            replace: true,
            templateUrl: 'some_form_template.html',
            // template: '<div>Hello World</div>'
}

When it comes to using special validation you also use directives to create validations: http://ng-learn.org/2014/02/Writing_Custom_Validitions/

When it comes to flagging errors please use the ng-messages/ng-message directives: https://docs.angularjs.org/api/ngMessages/directive/ngMessages

This question has already been asnwerd: How to create a angular input directive that works with form validation

Solution 2:

If your talking angular2 which is now angularjs or angular.io use a component.

take a look at angular-cli use ng generate component yourform to generate the start of a component.

Post a Comment for "Using Jsp C Tag Within Angularjs Code"