Links to angular Routes

In the above example, we have declared three links within HTML page as given below.

    <div>
        <ul>
            <li>
                <a href="#/routeURL1">Route Text1</a>
            </li>
            <li>
                <a href="#/routeURL2">Route Text2</a>
            </li>
            <li>
                <a href="#/routeURL3">Route Text3</a>
            </li>
        </ul>
    </div>

The above URLs contain the “#” key, after the “#” matches the route which are configured in the $routeProvider and after clicked on these links the URLs will changed in the browser.


About Blogger

ANIL SINGH

Hey! I am Anil Singh. I am Active Blogger, Writer and Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
http://www.code-sample.com
http://www.code-sample.xyz

    Blogger Comment
    Facebook Comment

2 comments:

  1. Hi Anil Singh,
    do i need to have jquery knowledge to work with angularjs

    ReplyDelete
    Replies
    1. Ur tutorials are helping great for me.
      I'm beginner to learn angularJs, so let me clarify should i learn angularjs or not.
      im in confused

      Delete

SQL Server NodeJs TypeScript JavaScript Angular SQL Server My Book