Goal: make Angular’s url/controller corresponding system work in Rails.
Category Archives: AngularJS
Angular Material Style Not Working
It’s likely that you forgot to set up the theme in JavaScript. No it won’t work at all without theme setup.
Learning by Doing: The Real Path Down AngularJS
This is the third and last part in the Guide to Self-teaching AngularJS Trilogy. If you haven’t gone through the first one, do it now, here. If you’ve already covered the first two, nice job on the hard work!
Read on.
Performance Issue with Leaflet GeoJSON
It’s fine performing while data is not large. However with data as huge as all countries’ boundaries, GeoJSON freaks out and blocks the whole page.
When gettextCatalog.loadRemote(url); is Done
How do I know it’s done?
function broadcastUpdated() { $rootScope.$broadcast('gettextLanguageChanged'); }
There’s this in the source code so listen to the event.
AngularJS Animation Doesn’t Work?
Angular components rule number one: use the same version of them.
Especially with things like angular-animate, specify the exact same version in bower before installing, or bower might take liberties in deciding the weirdest combination of versions.
Reference: $state.go() with Parameter
To go to this state with a bookName
parameter:
state('book.name', { url: '/books/:bookName', ... })
Reference: Retrieve the Filtered Array in Angular
ng-repeat=”product in data.activeProducts = (productList | filter: {brand_id: searchedId})”
Pay attention to the data.activeProduct part. Since ng-repeat creates another scope, if you want to use the filtered list outside of ng-repeat, append it to an outside object.