Can you help what I'm doing wrong here?
I implemented an editable shortcut with angular js in one of my forms using xeditable and angular, but it is strange that the editable shortcut acts like a normal link, I followed this document
https://vitalets.imtqy.com/angular-xeditable/
Here is my html code corresponding to html
<a href="#" editable-text="user.name">{{ user.name || "empty" }}</a>
I insert the angular js controller and thatโs it, I have no error, it just acts like a normal link.
EDIT my app.js looks like
'use strict'; var App = angular.module('myApp', [ 'ngResource', 'ngRoute', 'ngFileUpload', 'angularBootstrapNavTree', 'ngAnimate', 'angularUtils.directives.dirPagination', "checklist-model", 'xeditable' ]);
And my controller:
'var strict'; App.controller('GenerationContenuController',['$scope', '$http','$interval','GenerationContenu','InputText','$timeout', function($scope, $http,$interval,GenerationContenu,InputText ,$timeout){ var self=this; $scope.user = { name: 'awesome user' }; ... }]);
and finally html
<form id="msform" ng-controller="GenerationContenuController as ctrl" editable-form> <ul id="progressbar"> <li class="active">Choix du contenu</li> <li>Validation du vocabulaire</li> <li>Validation du contenu </li> </ul> <fieldset> <h2 class="fs-title">Choix du contenu</h2> <a href="#" editable-text="user.name">{{ user.name || "empty" }}</a> <div class="form-group"> <select class="form-control" id="inputText" ng-model="typeInputText" ng-change="ctrl.update()" required> <option value="MOT CLE">Mots cles</option> <option value="PHRASE">Phrases bateau</option> <option value="AVIS">Faux avis</option> <option value="CONSEIL">Conseils pour parents</option> </select> </div> <div class="form-group"> <select class="form-control" ng-model="selectedInputText" required> <option ng-repeat="inputText in inputTexts" value="{{inputText.text}}">{{inputText.text}}</option> </select> </div> <input type="button" name="next" class="next action-button" ng-click="ctrl.genererVocabulaire()" value="Next" /> </fieldset> <fieldSet> .... </fieldSet> <fieldSet> .... </fieldSet> </form> </div>
I tried setting max and saving the value at the same time
source share