Commit 7955a684aa2adf07e5e45c186611b3871c09a927
1 parent
511ec322
Exists in
master
and in
8 other branches
Dont use native html attr to use custom data on directives
Showing
2 changed files
with
4 additions
and
4 deletions
Show diff stats
src/app/components/show-message/show-message.directive.js
@@ -19,8 +19,8 @@ | @@ -19,8 +19,8 @@ | ||
19 | templateUrl: 'app/components/show-message/show-message.html', | 19 | templateUrl: 'app/components/show-message/show-message.html', |
20 | scope: { | 20 | scope: { |
21 | type: '=', | 21 | type: '=', |
22 | - title: '=', | ||
23 | - message: '=' | 22 | + message: '=', |
23 | + description: '=' | ||
24 | }, | 24 | }, |
25 | controller: ShowMessageController, | 25 | controller: ShowMessageController, |
26 | controllerAs: 'vm', | 26 | controllerAs: 'vm', |
src/app/components/show-message/show-message.html
@@ -8,8 +8,8 @@ | @@ -8,8 +8,8 @@ | ||
8 | </div> | 8 | </div> |
9 | </div> | 9 | </div> |
10 | <div class="col-sm-8 message-content text-center-sm"> | 10 | <div class="col-sm-8 message-content text-center-sm"> |
11 | - <h3>{{ ::vm.title }}</h3> | ||
12 | - <p>{{ ::vm.message }}</p> | 11 | + <h3>{{ ::vm.message }}</h3> |
12 | + <div ng-bind-html="vm.description"></div> | ||
13 | </div> | 13 | </div> |
14 | </div> | 14 | </div> |
15 | </div> | 15 | </div> |