Create separate controller for each directive

+ Replace undefined value
+ remove console.log()
+ add scope: true in directive for more comprehension