tiberiuzuld / angular-auto-save-form Goto Github PK
View Code? Open in Web Editor NEWAngular auto save form changed inputs
Home Page: https://tiberiuzuld.github.io/angular-auto-save-form
License: MIT License
Angular auto save form changed inputs
Home Page: https://tiberiuzuld.github.io/angular-auto-save-form
License: MIT License
https://github.com/tiberiuzuld/angular-auto-save-form/blob/master/src/auto-save-form/auto-save-form.js
line 111
to be moved in line 116 success method
and a copy to line 120 else branch of the if
Please change
<script src="bower_components/angular-auto-save-form/auto-save-form.js"></script>
to
<script src="bower_components/angular-auto-save-form/dist/auto-save-form.js"></script>
Also, please add underscore as a dependency.
Great job indeed!
Hi,
Kindly let me know how could I import this module to ES6 Angular tsx file.
Thanks & Regards,
Suhas
Something like:
<div>
<input type="radio" ng-model="lunch" value="chicken" name="lunch">
<input type="radio" ng-model="lunch" value="beef" name="lunch">
<input type="radio" ng-model="lunch" value="fish" name="lunch">
</div>
Doesn't look it. It seems to require name to be unique for each input.
Hi
I added the dependencies to my project and the attributes to the form. But when I load the page I get this error:
base.js:23068 ReferenceError: _ is not defined
at saveFormLink (http://localhost:3010/app/js/base.js:68202:26)
at invokeLinkFn (http://localhost:3010/app/js/base.js:19324:9)
at nodeLinkFn (http://localhost:3010/app/js/base.js:18810:11)
at compositeLinkFn (http://localhost:3010/app/js/base.js:18058:13)
at compositeLinkFn (http://localhost:3010/app/js/base.js:18061:13)
at nodeLinkFn (http://localhost:3010/app/js/base.js:18805:24)
at compositeLinkFn (http://localhost:3010/app/js/base.js:18058:13)
at publicLinkFn (http://localhost:3010/app/js/base.js:17938:30)
at http://localhost:3010/app/js/base.js:50541:9
at invokeLinkFn (http://localhost:3010/app/js/base.js:19324:9)
What am I missing?
Thanks
I have multiple forms on a page that all need their fields saved to their specific id. Can I pass an additional object to the callback?
I'm using it in an angular 1 project that's using typescript and controllerAs pattern rather than $scope (see https://docs.angularjs.org/guide/concepts#controller). Things seem to work fine (aata gets auto saved) but I get this error when using angular auto save:
error_handler.js:51 TypeError: scope.$eval(...) is not a function at getChangedControls (auto-save-form.js:116) at invokeFunc (lodash.js:10024) at trailingEdge (lodash.js:10071) at timerExpired (lodash.js:10059) at ZoneDelegate.invokeTask (zone.js:225) at Object.onInvokeTask (ng_zone_impl.js:34) at ZoneDelegate.invokeTask (zone.js:224) at Zone.runTask (zone.js:125) at ZoneTask.invoke (zone.js:293)
If I switch to adding my auto save function to the $scope variable then that error no longer appears.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.