1

in angular Js I have created a module of mine and trying to use a module xeditable (http://vitalets.github.io/angular-xeditable/). There is a directive in my module which I am trying to compile in a directive in xeditable but it stays the same (the edit panel does not show my control, in code it is still showing name of my directive).

This is the line in xediable where I think it should get compiled:

$compile(self.editorEl)($scope);

I thought it was due to dependency so I added the dependency of myApp into editable. Here is how is bootstrap angular:

angular.bootstrap($app, ['myApp' ,'xeditable']);

Here is how I register xeditable:

angular.module('xeditable', ['myApp'])

The code $compile(self.editorEl)($scope); does not set return value in anything. So does this mean that self.editorEl will be updated after compilation?

I am looking at right area or do you think the error is somewhere else? No exception is being thrown.

4

0 回答 0