mardi 29 mars 2016

Angular formly: [$injector:unpr] Unknown provider: formlyProvider <- formly <- ctrl

Im new with formly and don't get it working.

http://ift.tt/1ROlsFV

Have this script:

angular.module('app', ['formly', 'formlyBootstrap',])
.controller('ctrl', function(){
   var vm = this;
   vm.userFields = [
   {
      type: 'input'
   },
   ];
});

Html:

<body ng-app="app">
  <div ng-controller="ctrl">
    <formly-form model="vm.user" fields="vm.userFields"></formly-form>
  </div>
</body>

An get this Error:

Error: [$injector:unpr] Unknown provider: formlyProvider <- formly <- ctrl




Aucun commentaire:

Enregistrer un commentaire