Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ..some code
- <my-Form></my-Form>
- <form name="myForm">
- ...fields
- var newData = angular.module('newData',[]);
- newData.controller('DataController', function() {
- //would like to access form here
- })
- newData.directive('myForm', function() {
- return {
- scope: {}
- templateUrl: 'myForm.html'
- link: function(scope, element, attrs) {
- }
- };
- })
Add Comment
Please, Sign In to add comment