Skip to content

Commit

Permalink
Templating [release v0.5.1]
Browse files Browse the repository at this point in the history
- Move from a templateUrl to a templateString
  • Loading branch information
colealanroberts committed Apr 10, 2017
1 parent 51030c4 commit d8e944d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Exprecss",
"description": "A lightweight responsive framework built on Bourbon & Neat",
"version": "0.5.0",
"version": "0.5.1",
"main": "exprecss.css",
"ignore": [
".*",
Expand Down
4 changes: 2 additions & 2 deletions exprecss.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/_exprecss.sass
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$version: 'v0.5.0'
$year: '2016'
$version: 'v0.5.1'
$year: '2017'
$license: 'WTFPL'

/*!
Expand Down
12 changes: 11 additions & 1 deletion src/js/exprecss.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,17 @@
title: '@expModal',
open: '=expModalOpen'
},
templateUrl: 'src/templates/modal.html',
template : '' +
'<div class="modal" ng-if="open">' +
' <div class="modal-overlay" ng-click="close()"></div>' +
' <div class="modal-content">' +
' <div class="modal-header modal-header-info">{{ title }}</div>' +
' <div class="modal-body" ng-transclude></div>' +
' <div class="modal-footer">' +
' <a id="btn-okay" class="btn btn-primary float-right" ng-click="close()">Okay</a>' +
' </div>' +
' </div>' +
'</div>',
transclude: true,
link: function (scope) {
scope.close = function () {
Expand Down

0 comments on commit d8e944d

Please sign in to comment.