TagJavaScript

Angular 2 is terrible

“We used Angular 2 for our frontend. I was not involved in this decision, and I came to work on the frontend relatively late in the project. This post is not meant to be a comprehensive review of the framework, but rather a collection of observations after using it for a little more than two weeks. I don’t claim that using it for two weeks makes me an expert, and welcome any corrections, but for what it’s worth, I consider using Angular 2 one of the biggest mistakes for our project …

Read more at:

https://meebleforp.com/blog/36/angular-2-is-terrible

 

Share this ...Tweet about this on TwitterShare on FacebookEmail this to someoneShare on RedditShare on Google+Share on LinkedInPin on Pinterest

How to pass data to JavaScript with Basset?

This article explains how to pass data from server PHP to JavaScript with Basset – better asset management for Laravel.

Sometimes you will want to pass data from server PHP to JavaScript but without API. It can be to preload data, or to pass some server specific data which shouldn’t be in API’s.

You can use Basset\Javascript class for that. Whatever you set on this class will be available from the browser JavaScript runtime.

Continue reading

Share this ...Tweet about this on TwitterShare on FacebookEmail this to someoneShare on RedditShare on Google+Share on LinkedInPin on Pinterest

jQuery Resizable Table Columns

Resize your table columns by dragging the header edges. It also stores cell sizes for page refresh. Works in Chrome & Firefox (Mac + Windows), and IE 9 + 10, and also Chrome for Android.

Read more at:

https://github.com/dobtco/jquery-resizable-columns

Demo:

http://dobtco.github.io/jquery-resizable-columns/

To install with Bower:

bower install jquery-resizable-columns

 

Share this ...Tweet about this on TwitterShare on FacebookEmail this to someoneShare on RedditShare on Google+Share on LinkedInPin on Pinterest

PhotoSwipe – Zoomable gallery with Touch Gestures

“Touch-friendly JavaScript image gallery for mobile and desktop, without dependencies.”

Awesome responsive, mobile-first, image gallery library with support for pinch to zoom and close, swipe, browser history API, lazy loading, native html5 fullscreen, keyboard access, social sharing. It works on pretty much any browser.

http://photoswipe.com/

To install with Bower:

bower install photoswipe

 

Share this ...Tweet about this on TwitterShare on FacebookEmail this to someoneShare on RedditShare on Google+Share on LinkedInPin on Pinterest

© 2017 Legacy Blog