Skip to content
This repository has been archived by the owner on Jun 19, 2018. It is now read-only.

Commit

Permalink
feat(directives): all element directives are now E instead of EA. Closes
Browse files Browse the repository at this point in the history
 #247

BREAKING CHANGE:

The mwl-calendar directive is now element only instead of an attribute as well.

To migrate:
`<div mwl-calendar></div>` will no longer work. Instead you must use `<mwl-calendar></mwl-calendar>`
  • Loading branch information
Matt Lewis committed Dec 31, 2015
1 parent ac2723f commit b0887a1
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/directives/mwlCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ angular

return {
templateUrl: calendarConfig.templates.calendar,
restrict: 'EA',
restrict: 'E',
scope: {
events: '=',
view: '=',
Expand Down
2 changes: 1 addition & 1 deletion src/directives/mwlCalendarDay.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ angular

return {
templateUrl: calendarConfig.templates.calendarDayView,
restrict: 'EA',
restrict: 'E',
require: '^mwlCalendar',
scope: {
events: '=',
Expand Down
2 changes: 1 addition & 1 deletion src/directives/mwlCalendarHourList.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ angular
.directive('mwlCalendarHourList', function(calendarConfig) {

return {
restrict: 'EA',
restrict: 'E',
templateUrl: calendarConfig.templates.calendarHourList,
controller: 'MwlCalendarHourListCtrl as vm',
scope: {
Expand Down
2 changes: 1 addition & 1 deletion src/directives/mwlCalendarMonth.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ angular

return {
templateUrl: calendarConfig.templates.calendarMonthView,
restrict: 'EA',
restrict: 'E',
require: '^mwlCalendar',
scope: {
events: '=',
Expand Down
2 changes: 1 addition & 1 deletion src/directives/mwlCalendarSlideBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ angular
.directive('mwlCalendarSlideBox', function(calendarConfig) {

return {
restrict: 'EA',
restrict: 'E',
templateUrl: calendarConfig.templates.calendarSlideBox,
replace: true,
controller: 'MwlCalendarSlideBoxCtrl as vm',
Expand Down
2 changes: 1 addition & 1 deletion src/directives/mwlCalendarWeek.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ angular

return {
templateUrl: calendarConfig.templates.calendarWeekView,
restrict: 'EA',
restrict: 'E',
require: '^mwlCalendar',
scope: {
events: '=',
Expand Down
2 changes: 1 addition & 1 deletion src/directives/mwlCalendarYear.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ angular

return {
templateUrl: calendarConfig.templates.calendarYearView,
restrict: 'EA',
restrict: 'E',
require: '^mwlCalendar',
scope: {
events: '=',
Expand Down

0 comments on commit b0887a1

Please sign in to comment.