html - Unable to use a directive inside another directive in Angular2 -


i have html page i'm loading directive

<kms-dir1></kms-dir1> 

in component 'kmsdir1.html' loaded i.e templateurl, have defined , working fine, have requirement use 1 more directive (let's kmsdir2) in kmsdir1.html

in kmsdir1 component have specified directives , tried it's not loading

so have defined directive in parent page , using input , output params , making visibility hidden , show.

is there alternative???? i.e load directive inside 1 more directive

fyi: didn't see error in console. page not getting loaded (blank)

i see 2 potential issues:

  • you don't define directives directives property of component want use them
  • the selectors specify don't match element in component.

Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -