Skip to content

Instantly share code, notes, and snippets.

userApp.directive('ngGridview',
function ($parse, $path, $compile, $storage, $interpolate, $timeout) {
return {
restrict: 'AC',
link: function (scope, elem, attrs) {
$injector = angular.element('html').injector();
var id= 'gridview-'+attrs.ngGridview,
tags-input *, *:before, *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
tags-input .host {
position: relative;
margin-top: 5px;
margin-bottom: 5px;
/*
Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013
*/
.select2-container {
margin: 0;
position: relative;
display: inline-block;
/* inline-block for ie7 */
zoom: 1;
*display: inline;
//$apigeonames simple calls the api and return the json data...
$scope.grids.api_geo_names.$data(response.geonames); //json data returning from
//http://api.geonames.org/countryInfoJSON?username=design1online