javascript - How to ng-include a partial view that requires a lot of data (parameters) to be rendered? -
i have angular.js web ui editing complex , large mathematical objects. i'm trying build view displays results such object. thus, edited object needs sent back-end , back-end compute partial view based on data.
the ordinary (easy) way of doing use nginclude
directive:
<div ng-include=".../resultview?data=[json_stringyfied_object_here]>
this works. problem object can quite big in terms of numbers of chars used in json representation (as contain lot of floating point number , dates etc.). so, i'm afraid of running practical limitations of length of query string.
instead, i'd rather send object payload of (or post?) request. i'm not sure how accomplish angular way. there way of doing so?
worst case, can live solution displays "compute" button fetch partial view calling function uses $http
. how include view in dom in case?
i appreciate hints in how people tackle problem.
edit: view can quite different depending on (dynamic) type of mathematical object , computed results. thus, rendering static view , filling data won't work.
what use ng-include
include static templated page , make $http.put
call fetch data , have populate onto templated page.
Comments
Post a Comment