Search code examples
angularjsangular-formly

angular formly inject formly in module not working


hi : formly and formlyBootstrap not inject to my module

angular.module('myApp', ['formly', 'formlyBootstrap', function config(formlyConfig) {                
         formlyConfig.setType([
            {
             name: 'input',
             template: '<input ng-model="options.templateOptions.description"/>'
            }]);
         }
    ]);

Solution

  • Your Module should be,

    angular.module('app', ['formly', 'formlyBootstrap'])
    

    DEMO