-
-
Save weiland/047b43d354bc3329479f to your computer and use it in GitHub Desktop.
AngularJS - precompiled Haml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%html(lang='en' ng-app='app' ng-cloak) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%ng-form(name="circleEditForm") | |
%label Circle Name: | |
%input(type="text" name="circleName" | | |
ng-minlength= 3 | | |
ng-model="circleModal.name" | | |
ng-maxlength= 8 | | |
maxlength= 8 | | |
required | | |
ng-class="{error: !circleEditForm.circleName.$valid}" ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%ul.list | |
- query = "player in players" | |
- query += " | filter :filters.query" | |
- query += " | orderBy:filters.predicate:filters.reverse" | |
- query += " | startFrom: filters.startFrom" | |
- query += " | limitTo :filters.limit" | |
%li.player(ng-cloak fadein draggable player | | |
ng-repeat= query) | |
.avatar | |
%img(ng-src= "{{player.avatar}}") | |
.info | |
.username {{player.username}} | |
.points | |
%strong {{player.points}} | |
pts | |
.tagline {{player.tagline}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment