angularjs - Angular js code not getting called, any thing wrong with syntax -
below code calling on factory controler below code not working, there thing wrong syntax?
<script> eposapp.factory('getcustomization', function () { return { customization: @html.raw(json.encode(@model)) } }); </script>
you need (remove new line after return),
eposapp.factory('getcustomization', function () { return { customization: @html.raw(json.encode(model)) } });
in javascript semicolon insertion , therefore take return
valied statement , function return undefined
Comments
Post a Comment