Hi everyone! 

i don't understand this Code in angular (routes.js):
module.exports = function(app, controllers) {
    app.get('/', controller.service.index);
}
The file "controler/service":
var path = require('path');
module.exports = {
    index: function (req, res, next) {
        res.sendFile(path.join(__dirname,"../view","index.html"));
    }
}   

It works fine. But if i want to work on the "index.html" with a ng-include, 
it doesn't work! :-( For Example:
<div ng-include="'test.htm'"></div>

Struktur is:

   - Projectfolder
      - configuartion
         - routes.js
         - view
         - index.html
         - test.htm
      
If the index.html indludes
<script type="text/ng-template" id="test2.htm"> 
     test
</script>
the ng-include works fine.

So i am happy for any ideas or an usefull link (didn't find something 
helpful...)

Best regards, Simon

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to