material icon indicating copy to clipboard operation
material copied to clipboard

fabSpeedDial - 'FabController' name is not namespaced

Open zzebastien opened this issue 10 years ago • 3 comments

The FabController is not namespaced with 'Md'.

In our application we already have a controller named 'FabController', and it overrides the Angular Material FabController. File: fabController.js

angular.module('material.components.fabShared', ['material.core'])
    .controller('FabController', FabController);

So all the logic of FAB Speed Dial does not work in our application. Of course we can rename our controller, but still you should name it 'MdFabController' instead.

- Please rename FabControler to MdFabController

Other controllers within Angular Material are namespaced with 'Md' so I assume you do not have a pre-build check to verify that all controllers are correctly namespaced.

Example of a controller with a correct name: chipsController.js

angular
    .module('material.components.chips')
    .controller('MdChipsCtrl', MdChipsCtrl);

The menuItemController have the same problem: menuItemController.js

'MenuItemController' should be 'MdMenuItemController'

Angular Material: 1.0.3

Thanks ! Keep up the good work team :)

zzebastien avatar Jan 27 '16 19:01 zzebastien

+1

Yann77 avatar Jan 27 '16 19:01 Yann77

+2

LPCmedia avatar Jan 27 '16 20:01 LPCmedia

Attn @topherfangio - #breakingChange

ThomasBurleson avatar Jan 28 '16 04:01 ThomasBurleson