javascript - TypeError: errors.each is not a function -
I am trying to pass data in an aded template like this;
Error: Function (user, feedback) {// Create Flash Message with Errors and New Page Reeler for Different FailureAyers = $ .JSOS (Responsible Response Lessons) .Rors ; var error view = new schemma. View. Email message (); $ ("# error_messages"). Attachment (errorView.render ({Errors: Failure Years}) .l); } and has a flash error view;
Skimma View. Email message = backbone View. Extension ({Template: JST ['Flash / Error_message'], Render: Function (template data) {this. $ El.html (this tremlettata); Return this;}, < p> While the Flash error is the template; button type = "button" class = "close" data-discarded = "alert "& gt; & lt; i class =" icon lift "> Gt; & lt; / div & gt; & lt; br & gt; & lt; / div & gt;}); What can be the problem?
The original javascript objects are not each property. & lt;% _ (errors) .each (function (error) {%>
Comments
Post a Comment