hallo i am new on angular..
i have problem with function "appendChild"
here my story :
i have a library "JsonEditor" and i will use it on my directive
but inside the library there are a function "appendChild" but angular 
return "undefined is not a function"
but i think "appendChild" is one of function Dom manuputation
this is part of my code :

> define [
>
>   'app'
>
>   'json-editor'
>
>   'jquery'
>
> ], (app) ->
>
>   app.register.directive 'jsonEditorBasicUsage', ()->
>
>     {
>
>     restrict: 'AE'
>
>     replace: 'true'
>
>     scope: {}
>
>     compile:
>
>       (tElem, attrs) ->
>
>         console.log tElem
>
>         (scope, elem, attrs) ->
>
>           elem.appendChild("<h1>Test Append Child</h1>")
>
>           #result is undefined not a function
>
>           new JSONEditor(elem,
>
>             {
>
>              #some argument
>
>             }
>
>           )
>
>           #iniside this library there are appendChild function too and the 
>> result is same "undefined"
>
>           
>
>     }
>
>
how can i solve this problem?
thanks all :D

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to