Skip to content

Commit

Permalink
upgrade code to angular 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorMinar committed Aug 15, 2012
1 parent bbd5c9b commit 4efb543
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@
<div role="main" class="container bwa-main-container">

<script type="text/ng-template" id="bwa-project.html">
<div ng-click="lightbox()(project())">
<img alt="{{project() && project().name + ' screenshot'}}" class="bwa-img" ng-src="{{project() && 'projects/' + project().thumb}}">
<h2>{{project().name}}</h2>
<p class='bwa-project-desc'>{{project().desc}}</p>
<span class="label label-important bwa-label" ng-repeat="tag in project().tags" ng-click="addTag()(tag)">{{tag}}</span>
<div ng-click="lightbox(project)">
<img alt="{{project && project.name + ' screenshot'}}" class="bwa-img" ng-src="{{project && 'projects/' + project.thumb}}">
<h2>{{project.name}}</h2>
<p class='bwa-project-desc'>{{project.desc}}</p>
<span class="label label-important bwa-label" ng-repeat="tag in project.tags" ng-click="addTag(tag)">{{tag}}</span>
</div>
</script>

Expand Down
6 changes: 3 additions & 3 deletions js/bwa.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ app.directive('bwaProject', function() {
restrict: 'E',
templateUrl: 'bwa-project.html',
scope: {
lightbox: 'accessor',
project: 'accessor',
addTag: 'accessor'
lightbox: '=',
project: '=',
addTag: '='
}
}
});
Expand Down

0 comments on commit 4efb543

Please sign in to comment.