Skip to content

Instantly share code, notes, and snippets.

Created July 1, 2015 07:18
Show Gist options
  • Select an option

  • Save anonymous/da970a36fd25a1d2e218 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/da970a36fd25a1d2e218 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Jul 1, 2015.
    3 changes: 3 additions & 0 deletions index.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    <section ng-app>
    <button ng-click="count = count + 1" ng-init="count=0">Downloads ({{count}})</button>
    </section>
    7 changes: 7 additions & 0 deletions jPZWZd.markdown
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    jPZWZd
    ------


    A [Pen](http://codepen.io/malithmcr/pen/jPZWZd) by [malithmcr](http://codepen.io/malithmcr) on [CodePen](http://codepen.io/).

    [License](http://codepen.io/malithmcr/pen/jPZWZd/license).
    5 changes: 5 additions & 0 deletions script.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    it('should check ng-click', function() {
    expect(element(by.binding('count')).getText()).toMatch('0');
    element(by.css('button')).click();
    expect(element(by.binding('count')).getText()).toMatch('1');
    });
    1 change: 1 addition & 0 deletions scripts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.14/angular.min.js"></script>
    18 changes: 18 additions & 0 deletions style.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    section{
    width:800px;
    margin:0 auto;
    text-align:center;
    }
    button{
    width:180px;
    height:50px;
    font-size:18px;
    text-transform:uppercase;
    font-weigt:blod;
    color:#fff;
    background:#000;
    border-left:none;
    border-right:none;
    border-top:1px solid red;
    border-bottom:1px solid red;
    }