This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
So, I have
Question: How can I fix it? |
|
|
Minification is performing as intended here but Angular relies on the named arguments for injection. You will want to annotate your function with the names of the dependencies to avoid them being minified. There is an example of the two approaches available in https://docs.angularjs.org/tutorial/step05 under the "A Note on Minification" section.
|
|
|
Hello! On the advice of Jeremy, I read the manual to AngularJS and found that the problem does not in Web Workbench. I changed signin.coffee like this window.FormController = ['$scope', ($scope) -> $scope.submit = -> $('[name="login"]').prop('disabled', true) $('[name="password"]').prop('disabled', true) $('[name="submit"]').button("loading")and minificated code "singin.min.js" now works. Thank you, Jeremy. |
|