Bài đăng

Hiển thị các bài đăng có nhãn frontend

[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 mdTotal (which get from the documentation ), instead of writing it in s nake-case as md-total . I shall remember this forever when working with AngularJS, and so do you. ---V---

[UI] [network] Chrome - allow cross-origin (CORS) for dev purpose

For windows, press Window, type run,  open RUN utility window. Enter text: chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security Details can be found here . For Mac & Linux, check here . ---V---

[UI] Front end - download font on a website

Hình ảnh
You see an interesting font on a website and want to have it to test with your site? Follow below step to get it. Disclaim: For commercial purpose, kindly ask the permission from the owner of the font. 1. Open the developer tool 2. Go to source tab. 3. Find the font you need, usually, it's in folder /css  or / font 4. Right-click on the font name, find the option to download it (usually: 'open in new tab') ---V---

Good Reading for Frontend (Web) Developer

JavaScript. The Core. ---V---

Website does not change after submit code: clear CACHE first

Hình ảnh
Steps to clear:  (if the first step does not work, come to next steps in below order) - In Browser, pres CTRL + F5 to force load new data without cache. - Delete all Cache in broswer. - Delete cache in Front End server. Depend on type of server, you have different way to clear cache. It server is SAP ABAP, try below Tcode: /iwfnd/cache_cleanup Screen of   /iwfnd/cache_cleanup Pick the model of your project and the press Execute (F8) /IWBEP/CACHE_CLEANUP (to clear cache on all model) For more information, you can refer to:  https://blogs.sap.com/2010/06/14/how-to-clear-the-sap-portal-cache/ ---V---