[AngularJS] pain point for new commer: camelCase directive & snake-case HTML markup
Hi all,
I'm new with AngularJS in one project.
The different of a directive in Javascript code & HTML markup has caused me lots of trouble. It took me one day of work just to found out the reason is the type of one HTML markup.
The story:
I used the library of the material table from https://github.com/daniel-nagy/md-data-table#api-documentation
Things are good. Only one thing not work is that pagination total number.
I've checked everything correctly with the document in that link.
After a long time investigating all the possible reason, I end up finding out that I'm using an HTML markup in camelCase as
I shall remember this forever when working with AngularJS, and so do you.
---V---
I'm new with AngularJS in one project.
The different of a directive in Javascript code & HTML markup has caused me lots of trouble. It took me one day of work just to found out the reason is the type of one HTML markup.
The story:
I used the library of the material table from https://github.com/daniel-nagy/md-data-table#api-documentation
Things are good. Only one thing not work is that pagination total number.
I've checked everything correctly with the document in that link.
After a long time investigating all the possible reason, I end up finding out that I'm using an HTML markup in camelCase as
mdTotal
(which get from the documentation), instead of writing it in snake-case as md-total
.---V---
Nhận xét
Đăng nhận xét