Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8906231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:35:59+00:00 2026-06-15T02:35:59+00:00

I have an angularjs web app which has a view with the following basic

  • 0

I have an angularjs web app which has a view with the following basic structure :

<ul>
    <li ng-repeat="entry in entries" ng-switch on="entry.type" logic-options >
         <div ng-switch-when=1 text-entry></div>
         <div ng-switch-when=2 other-entry></div>
    </li>
</ul>

Here text-entry and other-entry are directives which have there own templates and logic-options is another directive which has a template and controller.

The logic-options directive provides some functions to be used by the child scope and has replace: false so that it should append its template to the end of the li. The text-entry and other-entry directives simply have some templates to be inserted which are also used on other views.

When I run this the logic-options directive will render and seems to function but the inner directives (text-entry and other-entry) will not.

In the console I get the error :

Error: Argument '?' is required qa@...

What causes this error and how do I correct it?

A fiddle demonstrating this problem : http://jsfiddle.net/cubicleWar/c3mTT/1/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:36:00+00:00Added an answer on June 15, 2026 at 2:36 am

    I believe you should be transcluding the child elems, also you may want to avoid
    putting ‘ng-switch’ directive in a different layer, so that it would not conflict with
    other directives.

    app.directive('logicOption', function() {
      return {
        replace: false,
        transclude: true,
        template: "<div ng-transclude>{{entry.type}} : This is the logic stuff</div>"
      };    
    });
    

    http://jsfiddle.net/YusCU/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have a controller in an AngularJS web app which has a data
I have a Rails/AngularJS app which works fine in local development environment. However, when
Have deployed numerous report parts which reference the same view however one of them
I am using Angularjs for a web application. I have tried searching to find
I use both Bootstrap and AngularJS in my web app. I'm having some difficulty
I am implementing a web app using angularjs (first time for me). One of
I have the AngularJS seed project and I've added $locationProvider.html5Mode(true).hashPrefix('!'); to the app.js file.
I have an AngularJS app that returns a list of json objects and I
I have the following controller which works fine: function Controller() {} Controller.prototype = {
Okay, first off, I am build a web app using AngularJS and node.js. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.