Skip to content

Commit

Permalink
Now compatible with Angular 1.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
adamalbrecht committed Dec 14, 2013
1 parent 5f1e69f commit bca9f54
Show file tree
Hide file tree
Showing 8 changed files with 145 additions and 150 deletions.
6 changes: 3 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngQuickDate",
"version": "1.0.0-alpha.2",
"version": "1.2.0-alpha",
"main": ["dist/ng-quick-date.js", "dist/ng-quick-date.css", "dist/ng-quick-date-default-theme.css"],
"ignore": [
"bower_components",
Expand All @@ -15,8 +15,8 @@
],
"dependencies": {},
"devDependencies": {
"angular": "~1.0.8",
"angular-mocks": "~1.0.8",
"angular": "~1.2.0",
"angular-mocks": "~1.2.0",
"jasmine": "~1.3.1",
"karma-jasmine": "~0.1.3",
"jquery": "~2.0"
Expand Down
34 changes: 34 additions & 0 deletions demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html data-ng-app='ngQuickDateDemo'>
<head>
<title>ngQuickDate Demo</title>
<link rel="stylesheet" type="text/css" href="dist/ng-quick-date.css" media="all" />
<link rel="stylesheet" type="text/css" href="dist/ng-quick-date-default-theme.css" media="all" />
</head>
<body>
<div ng-controller='DemoCtrl'>
<p>
<label>My Date</label>
<br/>
<datepicker ng-model='myDate'></datepicker>
</p>
<br/>
<p>
<strong>My Date:</strong> {{myDate | date:'medium'}}
</p>
</div>
<script type="text/javascript" src="bower_components/angular/angular.js"></script>
<!-- <script type='text/javascript' src='bower_components/jquery/jquery.js' /> -->
<script type="text/javascript" src="dist/ng-quick-date.js"></script>
<script type='text/javascript'>
var app = angular.module("ngQuickDateDemo", ["ngQuickDate"]);
app.config(function(ngQuickDateDefaultsProvider) {
return ngQuickDateDefaultsProvider.set({
});
});
app.controller("DemoCtrl", function($scope) {
$scope.myDate = new Date();
});
</script>
</body>
</html>
119 changes: 46 additions & 73 deletions dist/ng-quick-date.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bca9f54

Please sign in to comment.