Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Hello experienced lamp / ror /ios dev . complete mean stack super noob here.

background:

I want to render SignUp partial in home

home dir is under Core Module with home Controller sign up is under Users Module with AuthenticationController

used MEANJS boilerplate scaffolding with Yeoman


I initially put my form inside home.client.view.html but it is not modular want to keep the Signup with Users module

here is my sad attempt

<section data-ng-controller="AuthenticationController">
     <div data-ng-include data-ng-src="signup.client.view.html"></div>
</section>

inside the core client I added users module as so

ApplicationConfiguration.registerModule('core');
ApplicationConfiguration.registerModule('users');

what am i doing wrong

please do not link the documentation

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You simply have to put your template's source in a quotation marks (this example defines the source immediately on the ng-include part):

<div data-ng-include="'signup.client.view.html'"></div>

Here is a Plunker Example.

share|improve this answer
    
thank you Tomer for your help –  kknd Oct 30 '14 at 19:53
    
You are welcome! B.T.W, If this is the answer you were looking for, you should mark it (this way it won't show as an open question) –  Tomer Oct 31 '14 at 19:48
    
I just did thanks again. Another weekend of hacking on it makes me rly udnerstand the concept of front end frame work thanks! –  kknd Nov 2 '14 at 3:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.