angular / angular-phonecat

Tutorial on building an angular application.
http://docs.angularjs.org/tutorial
MIT License
3.12k stars 4.67k forks source link

How to open and edit the code? #265

Closed akumar08 closed 9 years ago

akumar08 commented 9 years ago

Hi guys.Am new to AngularJS and I have followed the instruction to setup my PC.I have 2 git windows running now ,one listening to the http server and the other is where I am working.I would like to view and edit the index.html file in the first step .How do i do that?Thank you.

bertyruan commented 9 years ago

Hi akumar, when you mention your 2 git windows, are you referring to the picture I pasted below? If so, that's your Git Shell, and it's not the best place to view/edit code on a Windows machine. I would recommend using Sublime Text 2, or even your Notepad to view/edit your code.

g

If not, I guess that you're in the wrong git branch. In which case, just run this command to switch HEAD positions.

git checkout -f step-0

Also to get that command to run, you have to be in the right directory. That can be solved by running the cd (short for current directory) command followed by where your project is located. For example, I run the following command to get to my angular-phonecat project:

cd .\angular-phonecat

(where the '.' denotes current directory)

Hope that addressed your issue. If not, just reply back again.

akumar08 commented 9 years ago

Hi Thanks for your reply.I downloaded the Sublime text editor but don't know where the index.html page is which is used on the angularJS tutorial page.I was wondering how I should proceed.Thanks.

On Wed, Jul 15, 2015 at 11:21 PM, Berty notifications@github.com wrote:

Hi akumar, when you mention your 2 git windows, are you referring to the picture I pasted below? If so, that's your Git Shell, and it's not the best place to view/edit code on a Windows machine. I would recommend using Sublime Text 2, or even your Notepad to view/edit your code.

If not, I guess that you're in the wrong git branch. In which case, just run this command to switch HEAD positions.

git checkout -f step-0

Also to get that command to run, you have to be in the right directory. That can be solved by running the cd (short for current directory) command followed by where your project is located. For example, I run the following command to get to my angular-phonecat project:

cd .\angular-phonecat

(where the '.' denotes current directory)

Hope that addressed your issue. If not, just reply back again.

[image: githubshell] https://cloud.githubusercontent.com/assets/5183841/8714573/b9a1b2d2-2b44-11e5-8439-f2e31fabbc16.png

— Reply to this email directly or view it on GitHub https://github.com/angular/angular-phonecat/issues/265#issuecomment-121815455 .

bertyruan commented 9 years ago

Yep, no problem.

To open the index page, go to the directory where you cloned this repo, and then to ./app/index.html. Your javascript files will be under ./app/js/*.

Based on your questions, it seems that you are new to web development. If this is so, I would not recommend learning AngularJS as your first step. Rather, you should learn the fundamental conecpts of web development such as HTML, CSS, and Javascript. Understanding these will help you understand (and appreciate) the innerworkings of AngularJS better.

A good place to get started in Web Development is Udacity's Javscript Basics course. It's free and the course is extremely well made.

Hope this helps :)

On a side note, this isn't the best place to post your questions. Rather you should post in an open forum discussion such as Stack Overflow because this place is for opening issues related to the code base. As such, it is probably best for you to close this issue.

akumar08 commented 9 years ago

Thank You berty.I know I am new to this but our office needs to work on a project on AngularJS so that is why I am in such position.Thanks for all your help and am closing this issue