Search Posts

Category: Coding Samples

AngularJs Best Practices

With AngularJs 1.3.x recently, There are many changes and updates to keep project good performance. Actually, It is very nice to apply new modern view and UI/UX for website  application. As already done, It’s noted thus the best practice that use in web application project. 1. Set ng-strict-di to make sure DI use strictly (remove it when deploy the product in production server) <div ng-app=”my-app” ng-strict-di> 2. Use one-time binding if it is the proper way. […]

Building Copy To Clipboard with ZeroClipboard

Some ago days, When I did a new feature ‘Copy To Clipboard’ on website page. I researched and found some JavaScript library and some guide to resolve it. Luckily, I saw ZeroClipboard on GitHub  “The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface” – http://zeroclipboard.org/ Advantages: Stylized the button Easy to use and configure Work well on Chrome, Firefox Disadvantages: No flash, no […]