Skip to content

Commit

Permalink
feat(editable): working editable, no tests/demo as of yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Hall committed Aug 6, 2013
1 parent c295ef8 commit 882d088
Show file tree
Hide file tree
Showing 8 changed files with 421 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = function(grunt) {
grunt.util.linefeed = '\n';

grunt.initConfig({
ngversion: '1.0.5',
ngversion: '1.0.7',
bsversion: '2.3.1',
modules: [],//to be filled in by build task
pkg: grunt.file.readJSON('package.json'),
Expand Down
12 changes: 12 additions & 0 deletions src/editable/docs/demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<div ng-controller="EditableDemoCtrl">

I am <a href="" ng-model="$parent.editableText" editable>{{ text }}</a>!
<hr>
Hey I'm pretty <a href="" ng-model="$parent.editableArray" source="arrayOpts" type="select" editable>{{ array }}</a> too!
<hr>
I'm even <a href="" ng-model="$parent.editableObject" source="objectOpts" type="select" editable>{{ object }}</a>!
<hr>
<pre>Text: {{ editableText }}</pre>
<pre>Array: {{ editableArray }}</pre>
<pre>Object: {{ editableObject }}</pre>
</div>
20 changes: 20 additions & 0 deletions src/editable/docs/demo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
var EditableDemoCtrl = function ($scope) {

$scope.editableText = 'editable';
$scope.editableArray = 'editable';
$scope.editableObject = 'editable';

$scope.arrayOpts = ['editable', 'sweet', 'nice'];

$scope.objectOpts = [{
label: 'editable',
someOtherStuff: 'neat!'
},{
label: 'sweet',
someOtherStuff: 'neat!'
},{
label: 'nice',
someOtherStuff: 'neat!'
}];

};
1 change: 1 addition & 0 deletions src/editable/docs/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add more to me!!!!
Loading

0 comments on commit 882d088

Please sign in to comment.