Angular directive priority not working

I have this element:

<div ace-editor dl-editor></div>

And these directives:

angular.module('DLApp')


.directive 'aceEditor', () ->
  restrict: 'A'
  priority: 10
  scope: false
  link: linkFunc1

.directive 'dlEditor', (Graph) ->
    restrict: 'A'
    priority: 0
    scope: false
    link: linkFunc2

(I know that 0by default)

dlEditoralways executed first, then aceEditor. What am I doing wrong?

+4
source share
1 answer

According to the docs : my emphasis


, DOM, , . . . . , - . undefined. - 0.

, (aceEditor), post-link ( ) .

( ), .

+13

Source: https://habr.com/ru/post/1531638/


All Articles