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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -