Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

feat(directives): all element directives are now E instead of EA. Closes

 #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
Matt Lewis committed Dec 31, 2015
1 parent ac2723f commit b0887a12b14b0290e4aa665a5dc7e4bcb2a5a7c4
@@ -112,7 +112,7 @@ angular

return {
templateUrl: calendarConfig.templates.calendar,
restrict: 'EA',
restrict: 'E',
scope: {
events: '=',
view: '=',
@@ -77,7 +77,7 @@ angular

return {
templateUrl: calendarConfig.templates.calendarDayView,
restrict: 'EA',
restrict: 'E',
require: '^mwlCalendar',
scope: {
events: '=',
@@ -51,7 +51,7 @@ angular
.directive('mwlCalendarHourList', function(calendarConfig) {

return {
restrict: 'EA',
restrict: 'E',
templateUrl: calendarConfig.templates.calendarHourList,
controller: 'MwlCalendarHourListCtrl as vm',
scope: {
@@ -93,7 +93,7 @@ angular

return {
templateUrl: calendarConfig.templates.calendarMonthView,
restrict: 'EA',
restrict: 'E',
require: '^mwlCalendar',
scope: {
events: '=',
@@ -22,7 +22,7 @@ angular
.directive('mwlCalendarSlideBox', function(calendarConfig) {

return {
restrict: 'EA',
restrict: 'E',
templateUrl: calendarConfig.templates.calendarSlideBox,
replace: true,
controller: 'MwlCalendarSlideBoxCtrl as vm',
@@ -79,7 +79,7 @@ angular

return {
templateUrl: calendarConfig.templates.calendarWeekView,
restrict: 'EA',
restrict: 'E',
require: '^mwlCalendar',
scope: {
events: '=',
@@ -66,7 +66,7 @@ angular

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

0 comments on commit b0887a1

Please sign in to comment.
You can’t perform that action at this time.