I am trying to create sample angularjs project in VS2015

Selected ASP.Net empty template

Copied all `angular.js` files into `Scripts` folder

Created `app`

Created `app.js` with correct routing

Created `app\index.html`

Created `app\home\login.html`

Running it with VS2015 I only get listing of files and not the index.html 
and the view that should be rendered with the default route.

The route in angular is set to `app\home\login.html` when site is loaded

If I create a new application in IIS and point to same directory, I get the 
sample site to load. I did have to create a rewrite rule and add this to 
the `index.html`

` <base href="/mysampleapp/">`

and following to my web.config

 

    <rewrite>
          <rules>
            <rule name="myrule">
              <match url="mysampleapp/(/*)" />
              <action type="Rewrite" url="myrule/index.html" />
            </rule>
          </rules>
        </rewrite>

How do I set up my sample project in VS2015. I do plan to add `webapi` 
controllers once I get basic site to load. Do I need to use rewrite rules?

I am not using `angularjs` template scaffold

Also used this in web.config

    <rewrite>
      <rules>
        <rule name="AngularJS" stopProcessing="true">
          <match url=".*" />
          <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" 
negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" 
negate="true" />
          </conditions>
          <action type="Rewrite" url="/" />
        </rule>
      </rules>
    </rewrite>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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