How to make Angularjs $http.delete and asp.net mvc4 minification work together? -


I have an example / ASP.NET Working on the MVC 4 app which communicates with backend via asp.net MVC web API.

The minimization of JavaScript files is done with MVC4, but when I use $ http.delete in angular code, then in the MVC 4 Minifier Returns bundle file The following error:

  / * minimization failed Returning non-proliferation content (1029,11-17): Run-time Alert JS1010: Expected identifier: Delete (1029,11-17): run -Time Error JS1137: 'Delete' is a new reserved word and it is known as identifier I should not be used: Delete   

I have made an alternative remedy which is the place of reserved word (in this case 'delete'), as described here, < P> This means that delete $ http will be replaced with $ http.fooDelete , as a result that the angular can not recognize it.

Is there any other workaround or is the simplest way to use jQuery instead Ajax?

@Larcy has been used as $ http @delete as @Steve, according to someone Also using the IE reserved words causes the candidate to throw error in the identifier. There is also a link to the list of reserved words for IE Hope it helps.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -