Skip to content

Instantly share code, notes, and snippets.

View ashteya's full-sized avatar

Ashteya Biharisingh ashteya

View GitHub Profile
@ashteya
ashteya / sample.js
Created July 2, 2015 21:01
Group By Day In Collection-Repeat
.filter('groupByDayMonthYear', function($parse) {
var dividers = {};
return function(input) {
if (!input || !input.length) return;
var output = [],
previousDate,
currentDate;
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="main.js"></script>
</head>
<body ng-app="myApp" ng-controller="myController">
<div>
<input type="text" ng-model="username" />